anv: remove unused field from anv_image_view
image_plane is unused. Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25467>
This commit is contained in:
@@ -3114,16 +3114,12 @@ anv_CreateImageView(VkDevice _device,
|
||||
* planes in the image view.
|
||||
*/
|
||||
anv_foreach_image_aspect_bit(iaspect_bit, image, iview->vk.aspects) {
|
||||
const uint32_t iplane =
|
||||
anv_aspect_to_plane(image->vk.aspects, 1UL << iaspect_bit);
|
||||
const uint32_t vplane =
|
||||
anv_aspect_to_plane(iview->vk.aspects, 1UL << iaspect_bit);
|
||||
struct anv_format_plane format;
|
||||
format = anv_get_format_plane(device->info, iview->vk.view_format,
|
||||
vplane, image->vk.tiling);
|
||||
|
||||
iview->planes[vplane].image_plane = iplane;
|
||||
|
||||
iview->planes[vplane].isl = (struct isl_view) {
|
||||
.format = format.isl_format,
|
||||
.base_level = iview->vk.base_mip_level,
|
||||
|
||||
@@ -5002,8 +5002,6 @@ struct anv_image_view {
|
||||
|
||||
unsigned n_planes;
|
||||
struct {
|
||||
uint32_t image_plane;
|
||||
|
||||
struct isl_view isl;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user