diff options
author | Roland Scheidegger <[email protected]> | 2010-05-17 21:23:46 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-05-17 21:23:46 +0200 |
commit | 6c32670706e8ed3855ff2187f0eadee43b5b8742 (patch) | |
tree | 93d4a040783629065d1e584d4c2e7d6a364cbc45 /src/gallium/drivers/softpipe/sp_screen.c | |
parent | e121a73d629856240a9676a4f0dff832d95c90c3 (diff) |
softpipe: adapt to interface changes
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 8bb0294238a..ad59ee90936 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -145,8 +145,9 @@ softpipe_get_paramf(struct pipe_screen *screen, int param) */ static boolean softpipe_is_format_supported( struct pipe_screen *screen, - enum pipe_format format, + enum pipe_format format, enum pipe_texture_target target, + unsigned sample_count, unsigned bind, unsigned geom_flags ) { @@ -162,6 +163,9 @@ softpipe_is_format_supported( struct pipe_screen *screen, if (!format_desc) return FALSE; + if (sample_count > 1) + return FALSE; + if (bind & (PIPE_BIND_DISPLAY_TARGET | PIPE_BIND_SCANOUT | PIPE_BIND_SHARED)) { |