i965: Make FS uniforms be the actual type of the uniform at upload time.
authorEric Anholt <eric@anholt.net>
Mon, 25 Oct 2010 19:52:29 +0000 (12:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Oct 2010 20:54:35 +0000 (13:54 -0700)
commit9e3641bd0d739a87a6998300ca29580cb557f380
treefc011e451a25a7d3f04850f90e5b5d712052f95e
parent502943049af6e8927e2b342365733fabda3d5b88
i965: Make FS uniforms be the actual type of the uniform at upload time.

This fixes some insanity that would otherwise be required for GLSL
1.30 bit ops or gen6 integer uniform operations in general, at the
cost of upload-time pain.  Given that we only have that pain because
mesa's mangling our integer uniforms to be floats, this something that
should be fixed outside of the shader codegen.
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_wm_pass0.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen6_wm_state.c