spirv/nir: Add support for ImageQuerySamples
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Jul 2016 20:15:59 +0000 (13:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Jul 2016 23:48:54 +0000 (16:48 -0700)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-dev@lists.freedesktop.org>
src/compiler/spirv/spirv_to_nir.c

index 27d2b4239bb3c2260e91fc838803f4475c0436b9..ca404d8beb3b61f06a161240038aa568c0335f70 100644 (file)
@@ -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");
    }