r300g: don't set sample positions to the pixel center if MSAA is disabled
authorMarek Olšák <maraeo@gmail.com>
Thu, 10 Jan 2013 14:23:56 +0000 (15:23 +0100)
committerMarek Olšák <maraeo@gmail.com>
Thu, 10 Jan 2013 14:37:10 +0000 (15:37 +0100)
commit2f89949b666889a61196657511b1dee4418ae865
tree6eef5376233fe2964e69a909c3ea21a5e8cdc594
parent9a07b6bd747e776aa55029e18ab11d3b8569ee61
r300g: don't set sample positions to the pixel center if MSAA is disabled

but an MSAA resource is bound. This effectively makes the MSAA disable switch
not affect rasterization, but it still affects the alpha-to-one and
alpha-to-coverage states. This hardware just lacks a proper MSAA disable
switch.

This fixes graphics corruption in sauerbraten.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59194
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_texture.c