diff options
author | Francisco Jerez <[email protected]> | 2015-07-06 19:11:54 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-07-07 20:20:22 +0300 |
commit | 24842e18aabdaeff41668b0e71e52d32975d2ccd (patch) | |
tree | 33ff681d1339d606157a5e8d05ee306ab977b1a0 /src/mesa/program/program.h | |
parent | 40e2102e528498dd4c03c4567d3522241f4d1f22 (diff) |
i965/gen4-5: Program the execution size correctly for DO/WHILE instructions.
From the hardware docs for the DO instruction:
"Execution size is ignored for this instruction."
My observation on ILK hardware contradicts the spec though, channels
over the execution size of a DO instruction won't enter the loop, and
channels over the execution size of a WHILE instruction will exit the
loop after the first iteration -- The latter is consistent with the
spec though, there's no claim about the execution size being ignored
for the WHILE instruction so it's not completely unexpected that it
has an influence on the evaluation of EMask.
The execute_size argument of brw_DO() shouldn't have any effect on
Gen6 and newer hardware. On Gen4-5 WHILE instructions inherit the
execution size from the matching DO, so this patch should fix them
too. The execution size of BREAK and CONT instructions was already
being set correctly.
Fixes some 50 piglit tests on Gen4-5 when forced to run shaders with
conditional and loop instructions 16-wide,
e.g. shaders/glsl-fs-continue-inside-do-while.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/program/program.h')
0 files changed, 0 insertions, 0 deletions