diff options
author | Marek Olšák <[email protected]> | 2016-09-10 01:21:11 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-09-13 20:38:25 +0200 |
commit | 275c073c6a49eacac85c21dc618d3c577f4d0495 (patch) | |
tree | e86b42bece49ba91dfc45e3f0c738781d08dcd80 /src/gallium/drivers/radeonsi/si_shader.h | |
parent | b89854b0c7927817293aaec196c41b991cbcf377 (diff) |
radeonsi: export SampleMask from pixel shaders at full rate
Heaven and Valley write gl_SampleMask and not Z.
Use 16_ABGR instead of 32_ABGR if Z isn't written.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index fc1b22d7383..de4705dd513 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -518,5 +518,7 @@ void si_shader_apply_scratch_relocs(struct si_context *sctx, void si_shader_binary_read_config(struct radeon_shader_binary *binary, struct si_shader_config *conf, unsigned symbol_offset); +unsigned si_get_spi_shader_z_format(bool writes_z, bool writes_stencil, + bool writes_samplemask); #endif |