panfrost: Zero r_dimension for buffer textures
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 3 Jun 2021 15:07:45 +0000 (11:07 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000 (18:06 +0000)
commitd61162af50bcdb5035de0fb75e3f1cfff706551c
tree04aebd2723a5b0f264982286dadf0f24c98a8d18
parenta78487f795e81c8fc27c2d1054f58dd35eda8c3a
panfrost: Zero r_dimension for buffer textures

Instead of reading wrong side of the union (undefined behaviour). Fixes
a GenXML assertion failure in
KHR-GLES31.core.texture_buffer.texture_buffer_texture_buffer_range

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
src/gallium/drivers/panfrost/pan_cmdstream.c