summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-24 16:36:41 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-03-08 22:04:51 +0000
commit8e5a43d2481cc5e31358f648e3e8adb1f4467dc1 (patch)
tree7987bb905464c5a1275fbbe8ad1fdf19a217a968 /src
parent47a145bb4a2aaaa945d43cd53f5a0cc8511fcfdf (diff)
radeon_dri2_create_buffer2: remove unused variable tiling
The code that used this was removed in commit 615033f2b5e3817e335e9d Recent versions of clang flag this: radeon_dri2.c:114:14: error: variable 'tiling' set but not used [-Werror,-Wunused-but-set-variable] uint32_t tiling = 0; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/-/merge_requests/19>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 17983779..fba56e5d 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -111,7 +111,6 @@ radeon_dri2_create_buffer2(ScreenPtr pScreen,
PixmapPtr pixmap;
int flags;
unsigned front_width;
- uint32_t tiling = 0;
unsigned aligned_width = drawable->width;
unsigned height = drawable->height;
Bool is_glamor_pixmap = FALSE;
@@ -217,13 +216,6 @@ radeon_dri2_create_buffer2(ScreenPtr pScreen,
flags = 0;
}
- if (flags & RADEON_CREATE_PIXMAP_TILING_MICRO)
- tiling |= RADEON_TILING_MICRO;
- if (flags & RADEON_CREATE_PIXMAP_TILING_MICRO_SQUARE)
- tiling |= RADEON_TILING_MICRO_SQUARE;
- if (flags & RADEON_CREATE_PIXMAP_TILING_MACRO)
- tiling |= RADEON_TILING_MACRO;
-
if (aligned_width == front_width)
aligned_width = pScrn->virtualX;