summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/nine_ff.c
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-11-27 13:14:21 +0100
committerAxel Davy <[email protected]>2016-12-20 23:44:21 +0100
commitc75415224fdb7f16f4a6f7ed87dbe62479048a9d (patch)
tree704f1d750ca5a7f4d02978008135871633eaadd7 /src/gallium/state_trackers/nine/nine_ff.c
parent32f6f91617b5d90d162aab1d4fb97e58c692edb9 (diff)
st/nine: Convert redundant check to assert in ff ps
We disable the alpha stage if the color stage is disabled. Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/nine_ff.c')
-rw-r--r--src/gallium/state_trackers/nine/nine_ff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c
index 294fbc89779..f30a98886fa 100644
--- a/src/gallium/state_trackers/nine/nine_ff.c
+++ b/src/gallium/state_trackers/nine/nine_ff.c
@@ -1385,9 +1385,10 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
struct ureg_dst dst;
struct ureg_src arg[3];
- if (key->ts[s].colorop == D3DTOP_DISABLE &&
- key->ts[s].alphaop == D3DTOP_DISABLE)
+ if (key->ts[s].colorop == D3DTOP_DISABLE) {
+ assert (key->ts[s].alphaop == D3DTOP_DISABLE);
continue;
+ }
ps.stage.index = s;
DBG("STAGE[%u]: colorop=%s alphaop=%s\n", s,