diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-02-25 01:55:13 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-02-25 18:37:39 +0100 |
commit | 51e8a66fa197de7e17fb94d901a4cf26f0812670 (patch) | |
tree | c83cf90b001da55c49d70dc059133a300b8ea31b /src/mesa/drivers/dri/nouveau/nv10_state_frag.c | |
parent | 59ddf8ca635465dea1d455c384f5905b65dc6979 (diff) |
dri/nouveau: Use the XRGB8888 hardware texture format.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_frag.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_state_frag.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_frag.c b/src/mesa/drivers/dri/nouveau/nv10_state_frag.c index b56b4ff02c..76b95fdd51 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state_frag.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state_frag.c @@ -179,6 +179,13 @@ get_input_arg(struct combiner_state *rc, int arg, int flags) return RC_IN_SOURCE(ZERO) | get_input_mapping(rc, operand, flags ^ INVERT); + + } else if (format == MESA_FORMAT_XRGB8888) { + /* Sometimes emulated using ARGB8888. */ + if (!is_color_operand(operand)) + return RC_IN_SOURCE(ZERO) | + get_input_mapping(rc, operand, + flags ^ INVERT); } } |