summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_atom_shader.c
AgeCommit message (Collapse)Author
2008-01-14Fix problems with vertex shaders and the private draw module.Brian
The CSO returned by pipe->create_vs_state() can't be passed to the private draw module. That was causing glRasterPos to blow up. Add a 'draw_shader' field to st_vertex_program for use with the private draw module. Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
2007-12-19special-case PSIZE tooBrian
2007-12-14Don't always declare frag shader INPUT[0] as fragment position.Brian
We were doing this for the sake of softpipe and the tgsi intergrepter since we always need the fragment position and W-coordinate information in order to compute fragment interpolants. But that's not appropriate for hardware drivers. The tgsi interpreter now get x,y,w information from a separate tgsi_exec_vector variable setup by softpipe. The new pipe_shader_state->input_map[] defines how vert shader outputs map to frag shader inputs. It may go away though, since one can also examine the semantic label on frag shader input[0] to figure things out.
2007-11-23gallium: reorg tgsi directories.Michal Krol
2007-10-29simplify code which access the current vertex/fragment shadersBrian
2007-10-27Move mesa_to_tgsi.[ch] to state_trackerBrian
2007-10-03Get rid of ST_NEW_SHADER flag and the dependency on _NEW_PROGRAMZack Rusin
which is being hit all the time. Done by Keith really.
2007-10-02assert that program length > 1 (some code, plus END)Brian
2007-10-01fix a few vert/frag program items to get i915 driver going againBrian
2007-09-28fix bug causing unnecessary translationsBrian
2007-09-28Instead of linked program pairs, keep a list of vertex programs translated ↵Brian
for each fragment program.
2007-09-26check for _NEW_PROGRAM mesa state (fixes arbfplight)Brian
2007-09-25some clean-up of ST_NEW_ shader flagsBrian
2007-09-25vertex/fragment shader state and linkingBrian