r600g: add a flag to just create flushed texture without flushing.
authorDave Airlie <airlied@redhat.com>
Thu, 3 Feb 2011 23:07:08 +0000 (09:07 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Feb 2011 23:09:45 +0000 (09:09 +1000)
commit3e9bc43fbafdd497d475eaffe0deec81b446d122
tree73d4e41d0470368e109df3f2f15a40db47f00cb9
parent446bc12c1760fe5d402cdd519a7f0e42d89b9696
r600g: add a flag to just create flushed texture without flushing.

This just adds a flag to create the texture without doing any
flushing to it. Flushing occurs in the draw function. This avoids
unnecessary flushes when we end up rebinding a CB/DB/texture due
to the blitter just restoring state.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_resource.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c