nvc0: implement the color buffer 0 is integer rule for alpha-to-one/cov
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 17 Aug 2015 08:08:01 +0000 (04:08 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 17 Aug 2015 08:21:18 +0000 (04:21 -0400)
commit1af0641db345209c076e9b1ba4dca7524541671a
treeccfd13f8541b6f19930b65dc3e47f7c5d9540b24
parent19a5a91ea49bd411f4d438d416000d49ecc2de7e
nvc0: implement the color buffer 0 is integer rule for alpha-to-one/cov

The hardware checks for multisampling being enabled, but does not have
the rule about cbuf0 being an integer format. Only enable
alpha-to-one/alpha-to-coverage if cbuf0 is not an integer format.

Fixes piglits
  ext_framebuffer_multisample-int-draw-buffers-alpha-to-one
  ext_framebuffer_multisample-int-draw-buffers-alpha-to-coverage

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
src/gallium/drivers/nouveau/nvc0/nvc0_stateobj.h