aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-21 13:15:59 -0700
committerJason Ekstrand <[email protected]>2016-07-22 16:48:54 -0700
commit9e05e51cff69dbb5da8588184c3b934e59c9a5ac (patch)
tree032187d46a6a32f7fd4e32335578f954de095ab6 /src
parent71202352c8d9f87d7b6f06bece67771d7cf641a4 (diff)
spirv/nir: Add support for ImageQuerySamples
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: "12.0" <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 27d2b4239bb..ca404d8beb3 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -1383,6 +1383,9 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode,
break;
case SpvOpImageQuerySamples:
+ texop = nir_texop_texture_samples;
+ break;
+
default:
unreachable("Unhandled opcode");
}