Mesa (master): radv: drop some unused cmask info members.
Dave Airlie
airlied at kemper.freedesktop.org
Tue Nov 1 05:19:18 UTC 2016
Module: Mesa
Branch: master
Commit: f88ea8c72abfe1e7a8dc4875d254ecb8cf325598
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f88ea8c72abfe1e7a8dc4875d254ecb8cf325598
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Nov 1 15:11:35 2016 +1000
radv: drop some unused cmask info members.
These were assigned but never used.
Inspired by similiar patch in radeonsi.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/amd/vulkan/radv_image.c | 4 ----
src/amd/vulkan/radv_private.h | 4 ----
2 files changed, 8 deletions(-)
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 710eda1..b63792d 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -562,10 +562,6 @@ radv_image_get_cmask_info(struct radv_device *device,
/* Each element of CMASK is a nibble. */
unsigned slice_bytes = slice_elements / 2;
- out->pitch = width;
- out->height = height;
- out->xalign = cl_width * 8;
- out->yalign = cl_height * 8;
out->slice_tile_max = (width * height) / (128*128);
if (out->slice_tile_max)
out->slice_tile_max -= 1;
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index cfdda36..ad5232b 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -933,10 +933,6 @@ struct radv_cmask_info {
uint64_t offset;
uint64_t size;
unsigned alignment;
- unsigned pitch;
- unsigned height;
- unsigned xalign;
- unsigned yalign;
unsigned slice_tile_max;
unsigned base_address_reg;
};
More information about the mesa-commit
mailing list