i965/gen4: Fix sampling from integer textures.
authorEric Anholt <eric@anholt.net>
Thu, 10 Nov 2011 00:07:57 +0000 (16:07 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 17 Nov 2011 16:31:55 +0000 (08:31 -0800)
commit7e84a64dd02794a59586ba58ef0864118534d3c6
tree9f4cab98d3eb52d976146cb7bed83e74a1e48fc8
parent0cddea37b2d79e4353347621cd2849cde682084a
i965/gen4: Fix sampling from integer textures.

On original gen4, the surface format didn't determine the return data
type from sampling like it does on g45 and later.

Fixes GL_EXT_texture_integer/texture_integer_glsl130

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_wm_emit.c