i965g: adapt to interface changes
authorRoland Scheidegger <sroland@vmware.com>
Mon, 17 May 2010 19:24:50 +0000 (21:24 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 17 May 2010 19:24:50 +0000 (21:24 +0200)
src/gallium/drivers/i965/brw_resource.c
src/gallium/drivers/i965/brw_resource.h
src/gallium/drivers/i965/brw_resource_texture.c
src/gallium/drivers/i965/brw_screen.c

index d601f42dd16212223fdd7e27ebba53ff2779bb13..3b9854be588a96a86943c1b573f65c49941ea4bb 100644 (file)
@@ -1,4 +1,5 @@
 #include "util/u_debug.h"
+#include "util/u_surface.h"
 
 #include "brw_resource.h"
 #include "brw_context.h"
@@ -37,6 +38,8 @@ brw_init_resource_functions(struct brw_context *brw )
    brw->base.transfer_unmap = u_transfer_unmap_vtbl;
    brw->base.transfer_destroy = u_transfer_destroy_vtbl;
    brw->base.transfer_inline_write = u_transfer_inline_write_vtbl;
+   brw->base.resource_copy_region = util_resource_copy_region;
+   brw->base.resource_fill_region = util_resource_fill_region;
 }
 
 void
index 3390c270d429ae288b843416b11a60251249095f..78defb37b2a4f32b906422e42ec6d971e9e097da 100644 (file)
@@ -124,7 +124,8 @@ boolean
 brw_is_format_supported( struct pipe_screen *screen,
                         enum pipe_format format,
                         enum pipe_texture_target target,
-                        unsigned tex_usage, 
+                        unsigned sample_count,
+                        unsigned tex_usage,
                         unsigned geom_flags );
 */
 
index 07537fe44efb07f2560cdf0af9de737321df1f65..4fbb0c2484dea747599b5aa95f3cffddeaa005b6 100644 (file)
@@ -594,7 +594,8 @@ fail:
 boolean brw_is_format_supported( struct pipe_screen *screen,
                                 enum pipe_format format,
                                 enum pipe_texture_target target,
-                                unsigned tex_usage, 
+                                unsigned sample_count,
+                                unsigned tex_usage,
                                 unsigned geom_flags )
 {
    return translate_tex_format(format) != BRW_SURFACEFORMAT_INVALID;
index 0a7151bde44b872b9cc35d6b3eeabea6fa925292..172e222c057547ab5d1b2587e83e47ef0041db9a 100644 (file)
@@ -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)