gallium: clean up point sprite rasterizer state
authorRoland Scheidegger <sroland@vmware.com>
Wed, 3 Feb 2010 16:25:14 +0000 (17:25 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 3 Feb 2010 16:25:14 +0000 (17:25 +0100)
commit4a4daa75a85db22cd37ebd533ebbccb427e07077
tree981d728824666f3c19995ce54e05a511c1fdd690
parenta407636efb6c32cee81b9a1525dbc804aacd957b
gallium: clean up point sprite rasterizer state

Don't need sprite coord origin per coord.
Also, don't need separate sprite enable bit - if all coords have it diabled,
then there are no point sprites (technically, there's a distinction in pre-GL3,
but it only differs in having more leniency in clamping to max size, something
the state tracker would need to handle and the hardware won't bother anyway).
Also, use packed field for the per-coord enables.
All in all, should save 3 dwords in rasterizer state (from 10 down to 7).
18 files changed:
src/gallium/auxiliary/draw/draw_pipe_validate.c
src/gallium/auxiliary/draw/draw_pipe_wide_point.c
src/gallium/docs/source/cso/rasterizer.rst
src/gallium/drivers/i965/brw_sf.c
src/gallium/drivers/i965/brw_sf_state.c
src/gallium/drivers/nv10/nv10_state.c
src/gallium/drivers/nv20/nv20_state.c
src/gallium/drivers/nv30/nv30_state.c
src/gallium/drivers/nv40/nv40_state.c
src/gallium/drivers/nv50/nv50_program.c
src/gallium/drivers/nv50/nv50_state.c
src/gallium/drivers/softpipe/sp_video_context.c
src/gallium/drivers/svga/svga_pipe_rasterizer.c
src/gallium/drivers/trace/tr_dump_state.c
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_state.h
src/gallium/state_trackers/python/retrace/interpreter.py
src/mesa/state_tracker/st_atom_rasterizer.c