diff options
author | Roland Scheidegger <[email protected]> | 2010-05-17 21:28:14 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-05-17 21:28:14 +0200 |
commit | b59b23a51dc17da59ccff0b3f8a73009056746e5 (patch) | |
tree | 766f29aef605a90ff9ec61535ba761d857e79537 /src/gallium/drivers/nv50/nv50_screen.c | |
parent | 433701a7214fb792c3e8bdd71a0d025c09328f87 (diff) |
nouveau: adapt to interface changes
this probably needs further cleanup (just getting a surface for the resource
seems quite nonoptimal and potentially cause unnecessary copies I think)
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_screen.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c index 2dd10424245..a8cb1e25d81 100644 --- a/src/gallium/drivers/nv50/nv50_screen.c +++ b/src/gallium/drivers/nv50/nv50_screen.c @@ -32,8 +32,12 @@ static boolean nv50_screen_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, enum pipe_texture_target target, + unsigned sample_count, unsigned tex_usage, unsigned geom_flags) { + if (sample_count > 1) + return FALSE; + if (tex_usage & PIPE_BIND_RENDER_TARGET) { switch (format) { case PIPE_FORMAT_B8G8R8X8_UNORM: |