diff options
author | Dave Airlie <[email protected]> | 2018-02-05 14:55:07 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-02-07 06:16:59 +1000 |
commit | 6c691081a183aec51d5305592b9fa391ebb447ab (patch) | |
tree | 2106e3a506145803ac9c4efbfaf6d50457c1857f /src/gallium/drivers/r600/r600_shader.h | |
parent | 2d5b5d267e1b0997ebe9fe7bcc06f6b79af48e43 (diff) |
r600: fixup sparse color exports.
If we have gaps in the shader mask we have to have 0x1 in them
according to a comment in radeonsi, and this is required to fix
the test at least on cayman.
We also need to record the highest one written to write to the
ps exports reg.
This fixes:
KHR-GL45.enhanced_layouts.fragment_data_location_api
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index 7fca3f455e8..4b23facf6f8 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -85,6 +85,7 @@ struct r600_shader { /* Real number of ps color exports compiled in the bytecode */ unsigned nr_ps_color_exports; unsigned ps_color_export_mask; + unsigned ps_export_highest; /* bit n is set if the shader writes gl_ClipDistance[n] */ unsigned cc_dist_mask; unsigned clip_dist_write; |