aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/isl
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2020-04-25 14:59:30 -0500
committerMarge Bot <[email protected]>2020-05-30 06:21:15 +0000
commitc48f42e178a1cc484870367c0cfe5fbbf71d86cc (patch)
tree306f90e708bf4adafddb2c0b23e0ab325dcc87ad /src/intel/isl
parent94aa7997e45b5314d169bbee5bf22ad368c2fd25 (diff)
intel/fs: Emit HALT for discard on Gen4-5
Using HALT to immediately jump to the end of the shader is required to implement GL_EXT_gpu_shader4 and OpenGL 3.0. However, vanilla OpenGL 1.2 doesn't forbid it and it likely makes something somewhere faster. We should be consistent and implement the same discard behavior on all hardware if we can. The rules for HALT on Gen4-5 are a bit different from Gen6+. On the older hardware, there is no stack for HALT; instead it's up to software to save and restore mask registers. However, there's no real saving needed since we only use HALT to jump to the end of the program where we're about about to do our FB writes. All we need to do is reset AMask to DMask, the value it was initialized to at the start of the thread. Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5244>
Diffstat (limited to 'src/intel/isl')
0 files changed, 0 insertions, 0 deletions