summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_screen.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2010-05-17 21:30:01 +0200
committerRoland Scheidegger <[email protected]>2010-05-17 21:30:01 +0200
commiteb2b668b3705f8091df716f342d72d32d9f31aea (patch)
tree390291143d4072ee0f792b8708091925aaa20837 /src/gallium/drivers/svga/svga_screen.c
parent39b4bf71b55ce4553e877868dcbf6e7502cbc696 (diff)
svga: adapt to interface changes
might need further cleanup. Using surfaces internally just to be able to use the existing code might cause unnecessary copies afaict.
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r--src/gallium/drivers/svga/svga_screen.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 27ac09e275d..b24af329218 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -237,17 +237,21 @@ svga_translate_format_cap(enum pipe_format format)
static boolean
svga_is_format_supported( struct pipe_screen *screen,
- enum pipe_format format,
+ enum pipe_format format,
enum pipe_texture_target target,
- unsigned tex_usage,
+ unsigned sample_count,
+ unsigned tex_usage,
unsigned geom_flags )
{
struct svga_winsys_screen *sws = svga_screen(screen)->sws;
SVGA3dDevCapIndex index;
SVGA3dDevCapResult result;
-
+
assert(tex_usage);
+ if (sample_count > 1)
+ return FALSE;
+
/* Override host capabilities */
if (tex_usage & PIPE_BIND_RENDER_TARGET) {
switch(format) {