nv50,nvc0: fix multisample format hack

Advertising different format support based on sample count was a
bad idea, it made resolve to window work, but resolve to anything
else would fail.

See 9f4998639c.
This commit is contained in:
Christoph Bumiller 2011-08-30 23:44:27 +02:00
parent 0b96b3ffa9
commit 66e8d223b6
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ nv50_screen_is_format_supported(struct pipe_screen *pscreen,
case PIPE_FORMAT_R8G8B8A8_UNORM:
case PIPE_FORMAT_R8G8B8X8_UNORM:
/* HACK: GL requires equal formats for MS resolve and window is BGRA */
if (sample_count > 1)
if (bindings & PIPE_BIND_RENDER_TARGET)
return FALSE;
default:
break;

View File

@ -50,7 +50,7 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen,
case PIPE_FORMAT_R8G8B8A8_UNORM:
case PIPE_FORMAT_R8G8B8X8_UNORM:
/* HACK: GL requires equal formats for MS resolve and window is BGRA */
if (sample_count > 1)
if (bindings & PIPE_BIND_RENDER_TARGET)
return FALSE;
default:
break;