radv: drop some unused cmask info members.
authorDave Airlie <airlied@redhat.com>
Tue, 1 Nov 2016 05:11:35 +0000 (15:11 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 1 Nov 2016 05:11:35 +0000 (15:11 +1000)
These were assigned but never used.

Inspired by similiar patch in radeonsi.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_image.c
src/amd/vulkan/radv_private.h

index 710eda1d548083a55bc7995b4e5027246118cb81..b63792daccb4c123ee4354c3e624b0fe3faa2e78 100644 (file)
@@ -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;
index cfdda365480147604470cc12b933c45a0619166e..ad5232b76eb25ae86801206d4cca2e2a87351add 100644 (file)
@@ -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;
 };