i915: Fix most of the clear problems

trivial/clear-undefined still fails
This commit is contained in:
Jakob Bornecrantz 2008-06-13 19:03:51 +02:00
parent 39bd7eb6dc
commit c341094921
2 changed files with 2 additions and 0 deletions

View 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;
}

View 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;
}