summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-01-11 23:51:39 +0100
committerMarek Olšák <marek.olsak@amd.com>2016-01-22 15:02:40 +0100
commit8667a1aea2ac3fee9b1b663132dc1bea8ec21cda (patch)
treeec989c6f1677d180846bf894ee4849bd83af3040 /src/gallium/drivers/radeonsi/si_state.h
parent0446ea9d084f5e72f7ea23f806a9723c94dd3685 (diff)
downloadexternal_mesa3d-8667a1aea2ac3fee9b1b663132dc1bea8ec21cda.zip
external_mesa3d-8667a1aea2ac3fee9b1b663132dc1bea8ec21cda.tar.gz
external_mesa3d-8667a1aea2ac3fee9b1b663132dc1bea8ec21cda.tar.bz2
radeonsi: use SPI_SHADER_COL_FORMAT fields instead of export_16bpc
This does change the behavior slightly: If a shader writes COLOR[i] and that color buffer isn't bound, the shader will export MRT_NULL instead and discard the IR tree that calculates the output. The only exception is alpha-to-coverage, which requires an alpha export. v2: - update a comment about 16BPC - account for MRTZ when when fixing alpha-test/kill Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index f5ca661..46ba3c4 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -39,6 +39,7 @@ struct si_shader;
struct si_state_blend {
struct si_pm4_state pm4;
uint32_t cb_target_mask;
+ bool alpha_to_coverage;
bool alpha_to_one;
bool dual_src_blend;
};