From: Jason Ekstrand Date: Thu, 21 Jul 2016 20:15:59 +0000 (-0700) Subject: spirv/nir: Add support for ImageQuerySamples X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e05e51cff69dbb5da8588184c3b934e59c9a5ac;p=mesa.git spirv/nir: Add support for ImageQuerySamples Signed-off-by: Jason Ekstrand Reviewed-by: Kenneth Graunke Cc: "12.0" --- 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"); }