i965: Fix isoline reads in scalar TES.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Jun 2016 04:00:43 +0000 (21:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Jun 2016 20:46:09 +0000 (13:46 -0700)
Isolines aren't reversed.  commit 5b2d8c2273c6f fixed this for the vec4
TES backend, but not the scalar one.

Found while debugging GL45-CTS.tessellation_shader.
tessellation_control_to_tessellation_evaluation.gl_tessLevel.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index e9f6999f9c35992102c25b0693edeaf7d34f1db2..9b6093ca1b858bea1bb3c63112993e2fad9500ed 100644 (file)
@@ -2749,7 +2749,7 @@ fs_visitor::nir_emit_tes_intrinsic(const fs_builder &bld,
          break;
       case BRW_TESS_DOMAIN_ISOLINE:
          for (unsigned i = 0; i < 2; i++)
-            bld.MOV(offset(dest, bld, i), component(fs_reg(ATTR, 0), 7 - i));
+            bld.MOV(offset(dest, bld, i), component(fs_reg(ATTR, 0), 6 + i));
          break;
       }
       break;