summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-09-10 01:21:11 +0200
committerMarek Olšák <[email protected]>2016-09-13 20:38:25 +0200
commit275c073c6a49eacac85c21dc618d3c577f4d0495 (patch)
treee86b42bece49ba91dfc45e3f0c738781d08dcd80 /src/gallium/drivers/radeonsi/si_shader.h
parentb89854b0c7927817293aaec196c41b991cbcf377 (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.h2
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