mesa/src/intel
Ian Romanick 2c51e96672 intel/fs: Fix gl_FrontFacing optimization on Gfx12+
It's not obvious why the (gl_FrontFacing ? -1.0 : 1.0) case was handled
different for Gfx12+ than for previous generations, and it's not
correct.  It tries to negate the result as an integer, and it does this
before the mask operation that clears the other bits in the value.

When we eventually support dual-SIMD8 dispatch, the other front-facing
bit is in g1.6 at bit 15, so similar code should be possible there.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Fixes: c92fb60007 ("intel/fs/gen12: Implement gl_FrontFacing on gen12+.")
Closes: #5876
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14625>
(cherry picked from commit 945fb51fb5)
2022-01-26 18:28:30 +00:00
..
blorp intel/blorp: fix a compile warning about uninitialized use 2021-10-05 11:59:27 +00:00
common intel: Add and use max_constant_urb_size_kb 2021-09-27 20:51:28 +00:00
compiler intel/fs: Fix gl_FrontFacing optimization on Gfx12+ 2022-01-26 18:28:30 +00:00
dev intel/dev: fixup chv workaround 2022-01-12 19:54:27 +00:00
ds pps: Avoid duplicate elements in with_datasources array. 2021-09-29 07:26:18 +00:00
genxml intel/genxml/gen4-5: fix more Raster Operation in BLT to be a uint 2022-01-12 19:54:23 +00:00
isl intel: fix INTEL_DEBUG environment variable on 32-bit systems 2021-10-20 20:40:58 +01:00
nullhw-layer intel/nullhw: fix build 2021-03-26 20:12:40 +00:00
perf intel/perf: fix perf equation subslice mask generation for gfx12+ 2021-11-10 21:58:04 +00:00
tools intel/stub: Silence "initialized field overwritten" warning 2021-12-17 22:30:50 +00:00
vulkan anv: fix missing descriptor copy of bufferview/surfacestate content 2022-01-26 18:28:30 +00:00
Makefile.perf.am intel: Rename GEN_PERF prefix to INTEL_PERF in build files 2021-04-20 20:06:34 +00:00
meson.build pps: Intel pps driver 2021-05-18 14:28:48 +00:00