Module: Mesa Branch: master Commit: e15ed7c6b83e51e865fb8ba6f5d26c0900aa0779 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e15ed7c6b83e51e865fb8ba6f5d26c0900aa0779
Author: Jason Ekstrand <[email protected]> Date: Wed Jul 20 20:57:37 2016 -0700 spirv/nir: Don't increment coord_components for array lod queries For lod query instructions, we really don't care whether or not the sampler is an array type because that doesn't factor into the LOD. Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Cc: "12.0" <[email protected]> --- src/compiler/spirv/spirv_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index b1bb48b..6654f5f 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -1511,7 +1511,7 @@ vtn_handle_texture(struct vtn_builder *b, SpvOp opcode, assert("Invalid sampler type"); } - if (instr->is_array) + if (instr->is_array && instr->op != nir_texop_lod) instr->coord_components++; } else { instr->coord_components = 0; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
