mesa/src/compiler/spirv
Iago Toral Quiroga 41ac0b1443 compiler/spirv: set is_shadow for depth comparitor sampling opcodes
From the SPIR-V spec, OpTypeImage:

"Depth is whether or not this image is a depth image. (Note that
 whether or not depth comparisons are actually done is a property of
 the sampling opcode, not of this type declaration.)"

The sampling opcodes that specify depth comparisons are
OpImageSample{Proj}Dref{Explicit,Implicit}Lod, so we should set
is_shadow only for these (we were using the deph property of the
image until now).

v2:
 - Do the same for OpImageDrefGather.
 - Set is_shadow to false if the sampling opcode is not one of these (Jason)
 - Reuse an existing switch statement instead of adding a new one (Jason)

Fixes crashes in:
dEQP-VK.spirv_assembly.instruction.graphics.image_sampler.depth_property.*

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: mesa-stable@lists.freedesktop.org
2018-04-04 07:57:58 +02:00
..
.gitignore .gitignore: Ignore new generated files 2018-01-08 21:11:11 -08:00
gl_spirv.c nir/spirv: add gl_spirv_validation method 2018-03-30 09:14:56 +02:00
GLSL.ext.AMD.h spirv: import AMD extensions header from glslang 2018-03-07 23:09:58 +01:00
GLSL.std.450.h spirv: bump headers to SPIRV 1.1 2017-01-25 17:22:23 +00:00
meson.build spirv: Move SPIR-V building to Makefile.spirv.am and spirv/meson.build 2018-03-29 14:16:01 -07:00
nir_spirv.h nir/spirv: add gl_spirv_validation method 2018-03-30 09:14:56 +02:00
spirv.core.grammar.json spirv: Update the SPIR-V headers and json to 1.3.1 2018-03-07 12:13:47 -08:00
spirv.h spirv: Update the SPIR-V headers and json to 1.3.1 2018-03-07 12:13:47 -08:00
spirv2nir.c spirv: Rework logging 2017-12-04 09:21:09 -08:00
spirv_info.h spirv/info: Add spirv_op_to_string 2018-01-08 14:57:44 -08:00
spirv_info_c.py spirv/info: Add spirv_op_to_string 2018-01-08 14:57:44 -08:00
spirv_to_nir.c compiler/spirv: set is_shadow for depth comparitor sampling opcodes 2018-04-04 07:57:58 +02:00
vtn_alu.c util: Include bitscan.h directly 2018-03-29 14:09:30 -07:00
vtn_amd.c nir/spirv: s/uint32_t/SpvOp/ in various functions 2018-03-30 14:33:33 -06:00
vtn_cfg.c spirv: s/uint/unsigned/ to fix MSVC build 2018-03-30 14:33:33 -06:00
vtn_gather_types_c.py spirv: Add a prepass to set types on vtn_values 2017-12-11 22:28:34 -08:00
vtn_glsl450.c nir/spirv: s/uint32_t/SpvOp/ in various functions 2018-03-30 14:33:33 -06:00
vtn_private.h nir/spirv: s/uint32_t/SpvOp/ in various functions 2018-03-30 14:33:33 -06:00
vtn_subgroup.c spirv: Add support for subgroup arithmetic 2018-03-07 12:13:47 -08:00
vtn_variables.c compiler: int8/uint8 support 2018-03-14 10:08:42 -04:00