summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_screen.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2010-05-17 21:24:50 +0200
committerRoland Scheidegger <[email protected]>2010-05-17 21:24:50 +0200
commita02ddd48c5f7350366115ac07c15113402a79ee2 (patch)
tree425851965449d3e7404a1fdcaae4b928e3c8b833 /src/gallium/drivers/i965/brw_screen.c
parentbccf31bf5f2d6c9516a4c073d735b5056ff1d608 (diff)
i965g: adapt to interface changes
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen.c')
-rw-r--r--src/gallium/drivers/i965/brw_screen.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.c b/src/gallium/drivers/i965/brw_screen.c
index 0a7151bde44..172e222c057 100644
--- a/src/gallium/drivers/i965/brw_screen.c
+++ b/src/gallium/drivers/i965/brw_screen.c
@@ -218,9 +218,10 @@ brw_get_paramf(struct pipe_screen *screen, int param)
static boolean
brw_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)
{
static const enum pipe_format tex_supported[] = {
@@ -276,6 +277,9 @@ brw_is_format_supported(struct pipe_screen *screen,
const enum pipe_format *list;
uint i;
+ if (sample_count > 1)
+ return FALSE;
+
if (tex_usage & PIPE_BIND_DEPTH_STENCIL)
list = depth_supported;
else if (tex_usage & PIPE_BIND_RENDER_TARGET)