From 8291d728dc997e87b4d2e4e451692643a1dba881 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 20 Feb 2020 10:41:55 +0000 Subject: aco: improve GFX9 1D ddx/ddy assertion Signed-off-by: Rhys Perry Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2547 Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Samuel Pitoiset Tested-by: Marge Bot Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 24be495dbb5..414fd811a30 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -7218,7 +7218,7 @@ void visit_tex(isel_context *ctx, nir_tex_instr *instr) /* pack derivatives */ if (has_ddx || has_ddy) { if (instr->sampler_dim == GLSL_SAMPLER_DIM_1D && ctx->options->chip_class == GFX9) { - assert(has_ddx && has_ddy && ddy.size() == 1 && ddy.size() == 1); + assert(has_ddx && has_ddy && ddx.size() == 1 && ddy.size() == 1); Temp zero = bld.copy(bld.def(v1), Operand(0u)); derivs = {ddy, zero, ddy, zero}; } else { -- cgit v1.2.1