[Mesa-dev] [PATCH 0/2] intel/compiler: Enable 8-bit constants

Jose Maria Casanova Crespo jmcasanova at igalia.com
Fri Jul 27 11:38:37 UTC 2018

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 <itoral at igalia.com>
Cc: Jason Ekstrand <jason at 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(+)


More information about the mesa-dev mailing list