OSDN Git Service

mesa: Track max enabled tex image unit
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 13 Apr 2014 00:37:31 +0000 (12:37 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 20 Apr 2014 22:12:00 +0000 (10:12 +1200)
commitc4a98e76d7dcb84ba6a0337dc975351966c4dac7
tree1669b5393c799dc1447013a0f5f15bfd7d5ad62b
parentba6dcb3c2b8f516b120f591144bf6c3751f0e3f9
mesa: Track max enabled tex image unit

This gives us a better bound for some hot loops in the drivers than
MAX_COMBINED_TEXTURE_IMAGE_UNITS, which is ridiculously large on modern
hardware, and only getting worse as more shader stages are added.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/mtypes.h
src/mesa/main/texstate.c