mesa, i965: prepare for more than 8 texture targets
authorChia-I Wu <olv@lunarg.com>
Sun, 23 Oct 2011 10:29:17 +0000 (18:29 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 3 Nov 2011 07:09:44 +0000 (15:09 +0800)
commit1ab1b15e9d0da1c5215a20770735b5477f5313df
tree0965de0f946151245341d434924f3bafa844284f
parent833d707db13afd2c4940be65a0e18d4e98cb8ec3
mesa, i965: prepare for more than 8 texture targets

3-bit fields are used store texture target in several places.  That will fail
when TEXTURE_EXTERNAL_INDEX, which happends to be the 9th texture target, is
added.  Make them 4-bit fields.

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/main/ff_fragment_shader.cpp
src/mesa/program/prog_instruction.h
src/mesa/program/program.c