When timestamping textures, need to emit the event with SAVAGE_WAIT_3D
authorFelix Kuehling <fxkuehl@gmx.de>
Mon, 14 Mar 2005 21:52:46 +0000 (21:52 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Mon, 14 Mar 2005 21:52:46 +0000 (21:52 +0000)
commitbd5bba84705fd96ebf11493130d54e547a83d0fc
tree738aedd40b5ea5c325c00e0c9fe57ef426f53190
parente2e4a5c992c7655cdd4374b962d339ec62bb5f5c
When timestamping textures, need to emit the event with SAVAGE_WAIT_3D
set. Otherwise the 3D engine may still be using a texture that is
being overwritten. In order to minimize the cost of waiting, timestamp
textures only when needed: when a texture image changes, when a
different texture is bound to a texture unit or when a texture unit is
disabled. (Used to be after flushing every command buffer.)
src/mesa/drivers/dri/savage/savageioctl.c
src/mesa/drivers/dri/savage/savagetex.c