Public paste
Undefined
By: Guest | Date: Dec 3 2009 23:32 | Format: None | Expires: never | Size: 716 B | Hits: 471

  1. diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c
  2. index dbccee8..fe8191e 100644
  3. --- a/src/mesa/state_tracker/st_texture.c
  4. +++ b/src/mesa/state_tracker/st_texture.c
  5. @@ -584,11 +584,5 @@ st_teximage_flush_before_map(struct st_context *st,
  6.                              unsigned int level,
  7.                              enum pipe_transfer_usage usage)
  8.  {
  9. -   struct pipe_context *pipe = st->pipe;
  10. -   unsigned referenced =
  11. -      pipe->is_texture_referenced(pipe, pt, face, level);
  12. -
  13. -   if (referenced && ((referenced & PIPE_REFERENCED_FOR_WRITE) ||
  14. -                     (usage & PIPE_TRANSFER_WRITE)))
  15. -      st->pipe->flush(st->pipe, PIPE_FLUSH_RENDER_CACHE, NULL);
  16. +   st_flush(st, PIPE_FLUSH_RENDER_CACHE, NULL);
  17.  }