i915: Fix most of the clear problems
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 13 Jun 2008 17:03:51 +0000 (19:03 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 13 Jun 2008 17:03:51 +0000 (19:03 +0200)
trivial/clear-undefined still fails

src/gallium/drivers/i915simple/i915_clear.c
src/gallium/drivers/i915simple/i915_texture.c

index cde69daacc08ddd8447e21e7c7fbd8167accd8d3..8a2d3ca43f17f4286d116b2202d1539c7eeb7a12 100644 (file)
@@ -44,4 +44,5 @@ i915_clear(struct pipe_context *pipe, struct pipe_surface *ps,
           unsigned clearValue)
 {
    pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);
+   ps->status = PIPE_SURFACE_STATUS_DEFINED;
 }
index 16354dce50909375d3c202ec6fce847adc8f8a3b..7a1665d48b2a2c696789d818fb0ff646afcebcbd 100644 (file)
@@ -635,6 +635,7 @@ i915_get_tex_surface(struct pipe_screen *screen,
       ps->pitch = tex->pitch;
       ps->offset = offset;
       ps->usage = flags;
+      ps->status = PIPE_SURFACE_STATUS_DEFINED;
    }
    return ps;
 }