add 'normalized_coords' field to pipe_sampler_state
authorBrian <brian.paul@tungstengraphics.com>
Mon, 15 Oct 2007 17:47:53 +0000 (11:47 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 15 Oct 2007 17:47:53 +0000 (11:47 -0600)
commit369eefc34c8d7acdb881ea5b0516406d71344fc4
tree323628a281f794df317aa89577266ac4bfc8649e
parentc8bf63e992f902f1bef0c20e5b50f397c4d219a7
add 'normalized_coords' field to pipe_sampler_state

This controls whether texcoords are interpreted as-is or scaled up from [0,1].
Fixes glDrawPixels/glBitmap problems on i915 when image is non power-of-two.
Also, cleans up the CSO sampler state for i915 a bit.
src/mesa/pipe/i915simple/i915_state.c
src/mesa/pipe/i915simple/i915_state_sampler.c
src/mesa/pipe/p_state.h
src/mesa/pipe/softpipe/sp_tex_sample.c
src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_cb_drawpixels.c