summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_sf_state.c
AgeCommit message (Collapse)Author
2011-01-09i965g: update to similiar gen stuff as i965Dave Airlie
2010-05-14gallium: more work on ccw flag removalKeith Whitwell
The linux-debug target builds...
2010-05-14gallium: convert rasterizer state to use gl-style front/back conceptsKeith Whitwell
Use front/back instead of cw/ccw throughout. Also, use offset_point/line/fill instead of offset_cw/ccw. Brings gallium representation of this state into line with its main user, and also what turns out to be the most common hardware representation. This fixes a long-standing bias in the interface towards the architecture of the software rasterizer.
2010-02-03gallium: clean up point sprite rasterizer stateRoland Scheidegger
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).
2010-01-12gallium: remove point_size_min and point_size_max from rasterizer stateRoland Scheidegger
The state tracker is responsible for clamping to any graphics API enforced size min/max limits for both the static point_size setting as well as per vertex point size (in the vertex shader). Note that mesa state tracker didn't actually use these values.
2009-11-06i965g: point_rast_rule comment no longer appliesKeith Whitwell
Not sure exactly what state we want here now, will need to experiment.
2009-11-06i965g: scissor off by oneKeith Whitwell
2009-11-06i965g: restore code to populate the relocation backgroundKeith Whitwell
I'm emitting this in two places now, to the data presented for upload and also in the delta field of the reloc struct. Probably want to remove the delta field and just pull the background from the key.
2009-11-05i965g: pass relocation information in an array with bo_subdataKeith Whitwell
Makes it easier to dump as we get all of the information about the upload in a single hit. Opens the window to simplification in the driver if these relocation arrays can be maintained statically rather than being recreated whenever we check for a new upload. Still needs some cleanup to avoid uglyness introduced with the delta values.
2009-11-05i965g: make the winsys responsible for all buffer->offset handlingKeith Whitwell
The winsys now inserts the presumed offset into referring buffers from inside of bo_emit_reloc(). Remove the many locally coded places where this was happening in the driver and eliminate the worry of getting it wrong. No longer need to expose offset values to the driver at all, so no need to worry about what to do in the driver when they change. Just use zero values wherever we had offsets previously -- the relocations will fix it all up for us.
2009-11-05i965g: remove duplicate viewport state in brw_contextKeith Whitwell
2009-11-05i965g: add lots of error checks and early returnsKeith Whitwell
Any allocation that may fail should be checked, and propogate the error upwards. At the highest level we will flush batch and retry. This is an alternate strategy to what the original DRI driver did of attempting to flush batch from the lowest levels (eg inside BEGIN_BATCH). The trouble with that strategy was that flushes could occur at unexpected times, and additionally there was a need for a wierd notification mechanism to propogate the 'lost context' state back up to higher levels. Propogating the errors directly gives us a lot of flexibility how to deal with these states, at the expense of a lot more checking in the code. Will add some sanity checks later to make sure that out-of-memory conditions are properly escalated and not lost halfway up the stack.
2009-11-04i965g: convert read/write domain pairs into single usage valueKeith Whitwell
Easier to understand what's going on in the driver sources, convert stereotype usage values back to GEM read/write domain flags in the winsys.
2009-11-01i965g: driver and winsys compileKeith Whitwell
A milestone of sorts. Still a long way from something working -- the old one compiled too, at least some of the time...
2009-10-26i965g: still working on compilationKeith Whitwell
2009-10-25i965g: more work on compiling, particularly the brw_draw filesKeith Whitwell
2009-10-24i965g: more work on compilingKeith Whitwell
2009-10-23i965g: wip on removing GL stuff, trying to get a few files compilingKeith Whitwell
2009-10-23i965g: re-starting from the dri driverKeith Whitwell