New VK-GL-CTS tests that use VK_KHR_8bit_storage extension use 32-bit constants that are converted to 8-bit and there are stored in a storage buffer.
Although 8-bit constants are not enabled by VK_KHR_8bit_storage nir_opt_constant_folding already optimizes the 32 -> 8 integer conversion to a 8-bit constant. So we enable them in next two patches to not assert in this scenario. Cc: Iago Toral Quiroga <ito...@igalia.com> Cc: Jason Ekstrand <ja...@jlekstrand.net> Iago Toral Quiroga (2): intel/compiler: add setup_imm_(u)b helpers intel/compiler: implement 8-bit constant load src/intel/compiler/brw_fs.h | 6 ++++++ src/intel/compiler/brw_fs_nir.cpp | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) -- 2.17.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev