r300/compiler: Implement the texture semaphore
authorTom Stellard <tstellar@gmail.com>
Fri, 13 May 2011 06:13:21 +0000 (23:13 -0700)
committerTom Stellard <tstellar@gmail.com>
Sat, 15 Oct 2011 01:30:14 +0000 (18:30 -0700)
commit163629fd05166b78d70c2c26f4a922b296e8999d
tree81c7020a49c5c1a7f8ba7c5e91b2a8321e7cbf5a
parent51fe9994bdec1625a27e12216d492916e64ab622
r300/compiler: Implement the texture semaphore

The texture semaphore allows for prefetching of texture data.  On my
RV515, this increases the FPS of Lightsmark by 33% (This is with the
reg_rename pass enabled, which is enabled in the next commit).

There is a new env variable now called RADEON_TEX_GROUP, which allows
you to specify the maximum number of texture lookups to do at once.
The default is 8, but different values could produce better results
for various application / card combinations.
src/gallium/drivers/r300/compiler/r500_fragprog_emit.c
src/gallium/drivers/r300/compiler/radeon_pair_schedule.c
src/gallium/drivers/r300/compiler/radeon_program.h
src/gallium/drivers/r300/compiler/radeon_program_pair.h
src/gallium/drivers/r300/compiler/radeon_program_print.c
src/gallium/drivers/r300/r300_reg.h