diff options
author | Marek Olšák <[email protected]> | 2013-01-10 15:23:56 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-01-10 15:37:10 +0100 |
commit | 2f89949b666889a61196657511b1dee4418ae865 (patch) | |
tree | 6eef5376233fe2964e69a909c3ea21a5e8cdc594 /src/gallium/drivers/r300/r300_texture.c | |
parent | 9a07b6bd747e776aa55029e18ab11d3b8569ee61 (diff) |
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
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 4eb9a230790..4be6d5067d2 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -1002,7 +1002,7 @@ r300_texture_create_object(struct r300_screen *rscreen, } if (SCREEN_DBG_ON(rscreen, DBG_MSAA) && base->nr_samples > 1) { - fprintf(stderr, "r300: %i MSAA %s buffer created\n", + fprintf(stderr, "r300: %ix MSAA %s buffer created\n", base->nr_samples, util_format_is_depth_or_stencil(base->format) ? "depth" : "color"); } |