summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2020-02-20 10:41:55 +0000
committerMarge Bot <eric+marge@anholt.net>2020-02-20 15:41:26 +0000
commit8291d728dc997e87b4d2e4e451692643a1dba881 (patch)
tree24f1d4aea3abf0c9b1e6f3db7daa20e988e8ecb3
parentcc3d29c6e7ccca1ac738cfeafbe4685fbec533f7 (diff)
downloadmesa-8291d728dc997e87b4d2e4e451692643a1dba881.tar.gz
aco: improve GFX9 1D ddx/ddy assertion
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2547 Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3890> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3890>
-rw-r--r--src/amd/compiler/aco_instruction_selection.cpp2
1 files changed, 1 insertions, 1 deletions
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 {