summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2021-03-28 06:23:02 -0400
committerMarge Bot <eric+marge@anholt.net>2021-04-06 22:31:15 +0000
commit815d98c22d407b9a3a3377d829152ed8649260fc (patch)
treebca690aa3fa8681c7efc9f19e9184ddae215388a /src/gallium/winsys
parent712b629abff0ae66aa8fe51e5119f75c4161c7bb (diff)
gallium/pb: remove 8 bytes from pb_buffer by packing variables
Only svga used usages beyond 16 bits. All other drivers are OK with 16 bits. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9809>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_buffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_buffer.h b/src/gallium/winsys/svga/drm/vmw_buffer.h
index 8ed56d4aa1e..9e452e7e807 100644
--- a/src/gallium/winsys/svga/drm/vmw_buffer.h
+++ b/src/gallium/winsys/svga/drm/vmw_buffer.h
@@ -34,8 +34,8 @@
/* These extra flags are used wherever the pb_usage_flags enum type is used */
-#define VMW_BUFFER_USAGE_SHARED (1 << 20)
-#define VMW_BUFFER_USAGE_SYNC (1 << 21)
+#define VMW_BUFFER_USAGE_SHARED (1 << 14)
+#define VMW_BUFFER_USAGE_SYNC (1 << 15)
struct SVGAGuestPtr;
struct pb_buffer;