zink/spirv: correct opcode
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 12 Jul 2019 10:06:51 +0000 (12:06 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:46 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c

index 4a1bb1cd2c947d9bd70f00e0b6de79a61b908ee2..b5aa3d9e61b1a04860d3efa0d31fc860b4f24364 100644 (file)
@@ -565,7 +565,7 @@ spirv_builder_emit_image_sample_proj_explicit_lod(struct spirv_builder *b,
 {
    SpvId result = spirv_builder_new_id(b);
    spirv_buffer_prepare(&b->instructions, 7);
-   spirv_buffer_emit_word(&b->instructions, SpvOpImageSampleProjImplicitLod | (7 << 16));
+   spirv_buffer_emit_word(&b->instructions, SpvOpImageSampleProjExplicitLod | (7 << 16));
    spirv_buffer_emit_word(&b->instructions, result_type);
    spirv_buffer_emit_word(&b->instructions, result);
    spirv_buffer_emit_word(&b->instructions, sampled_image);