Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | i965g: populate wm reloc array earlier | Keith Whitwell | 2009-11-06 | 1 | -36/+46 |
| | | | | Still have to calculate the reloc background in two places. | ||||
* | i965g: point_rast_rule comment no longer applies | Keith Whitwell | 2009-11-06 | 1 | -26/+4 |
| | | | | Not sure exactly what state we want here now, will need to experiment. | ||||
* | i965g: scissor off by one | Keith Whitwell | 2009-11-06 | 1 | -2/+2 |
| | |||||
* | i965g: restore code to populate the relocation background | Keith Whitwell | 2009-11-06 | 3 | -3/+11 |
| | | | | | | | 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. | ||||
* | i965g: clean up winsys dumping code a little | Keith Whitwell | 2009-11-05 | 1 | -59/+82 |
| | |||||
* | i965g: pass relocation information in an array with bo_subdata | Keith Whitwell | 2009-11-05 | 16 | -287/+327 |
| | | | | | | | | | | | | 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. | ||||
* | i965g: propogate map-buffer-range semantics down to winsys | Keith Whitwell | 2009-11-05 | 6 | -44/+100 |
| | |||||
* | i965g: make the winsys responsible for all buffer->offset handling | Keith Whitwell | 2009-11-05 | 12 | -30/+29 |
| | | | | | | | | | | | | 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. | ||||
* | i965g: remove duplicate viewport state in brw_context | Keith Whitwell | 2009-11-05 | 3 | -6/+3 |
| | |||||
* | i965g: correct sense of writedisable flags | Keith Whitwell | 2009-11-05 | 1 | -4/+4 |
| | |||||
* | brw: push more dumping into the winsys | Keith Whitwell | 2009-11-05 | 4 | -50/+93 |
| | |||||
* | i965g: correct size of surf_bo array | Keith Whitwell | 2009-11-05 | 1 | -1/+1 |
| | |||||
* | i965g: use Elements in loops over arrays | Keith Whitwell | 2009-11-05 | 1 | -2/+2 |
| | |||||
* | i965g: add const qualifiers | Keith Whitwell | 2009-11-05 | 2 | -21/+21 |
| | |||||
* | i965g: disassemble more than one instruction at a time | Keith Whitwell | 2009-11-05 | 6 | -31/+37 |
| | |||||
* | i965g: remove old dumping code | Keith Whitwell | 2009-11-05 | 3 | -232/+0 |
| | |||||
* | i965g: call dissassembler for appropriate data uploads | Keith Whitwell | 2009-11-05 | 1 | -4/+7 |
| | |||||
* | i965g: add lots of error checks and early returns | Keith Whitwell | 2009-11-05 | 35 | -745/+1003 |
| | | | | | | | | | | | | | | | | | | | 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. | ||||
* | i965g: Don't dump pads or dwords aliases. | José Fonseca | 2009-11-05 | 2 | -265/+8 |
| | |||||
* | i965g: hook up dumpers in dumping winsys | Keith Whitwell | 2009-11-05 | 1 | -0/+61 |
| | |||||
* | i965g: Dumper for i965 structures. | José Fonseca | 2009-11-05 | 5 | -0/+2073 |
| | |||||
* | i965g: add data type tags to aid dumping/decoding | Keith Whitwell | 2009-11-05 | 10 | -110/+182 |
| | |||||
* | i965g: use pipe_error return value for brw_batchbuffer_require_space | Keith Whitwell | 2009-11-05 | 1 | -3/+3 |
| | | | | | trivial/tri runs without crashing (on debug winsys) but still produces obviously incorrect command buffers. | ||||
* | i965g: fix compiler warning | Keith Whitwell | 2009-11-05 | 1 | -1/+1 |
| | |||||
* | i965g: Builds with scons | Jakob Bornecrantz | 2009-11-05 | 3 | -4/+86 |
| | | | | | | | | | | | But there are some missing symbols, "nm -u i965_dri.so" [SNIP] U brw_surface_bo U brw_surface_pitch U brw_texture_blanket_winsys_buffer U brw_texture_get_winsys_buffer U brw_update_dirty_counts [SNIP] | ||||
* | i965g: Fix debug check | Jakob Bornecrantz | 2009-11-05 | 1 | -1/+1 |
| | |||||
* | i965g: Build with configure | Jakob Bornecrantz | 2009-11-05 | 1 | -2/+2 |
| | |||||
* | i965g: Do not create a symlink for i965_dri.so | Jakob Bornecrantz | 2009-11-05 | 1 | -1/+0 |
| | |||||
* | i915g: Do not create a symlink for i965_dri.so | Jakob Bornecrantz | 2009-11-05 | 1 | -1/+0 |
| | |||||
* | i965g: enable line stipple packet emit | Keith Whitwell | 2009-11-04 | 1 | -1/+2 |
| | | | | | | With this change, trivial/tri manages to build and emit a fairly unconvincing command buffer (to the debug winsys), and then crashes. | ||||
* | i965g: fix order of calculation of brw->wm.nr_surfaces | Keith Whitwell | 2009-11-04 | 1 | -3/+3 |
| | |||||
* | i965g: consolidate some includes | Keith Whitwell | 2009-11-04 | 8 | -14/+7 |
| | |||||
* | i965g: fix some asserts | Keith Whitwell | 2009-11-04 | 1 | -2/+2 |
| | |||||
* | i965g: remove redundant screen pointer in brw context struct | Keith Whitwell | 2009-11-04 | 4 | -6/+7 |
| | |||||
* | i965g: initialize winsys pointer in surface cache | Keith Whitwell | 2009-11-04 | 1 | -0/+1 |
| | |||||
* | i965g: init pointer to null, avoid segfault | Keith Whitwell | 2009-11-04 | 1 | -1/+1 |
| | |||||
* | i965g: clean up wm init_registers func | Keith Whitwell | 2009-11-04 | 1 | -9/+11 |
| | |||||
* | i965g: hook up some missing vertex shader code | Keith Whitwell | 2009-11-04 | 2 | -3/+10 |
| | |||||
* | i965g: hook up some vertex state funcs | Keith Whitwell | 2009-11-04 | 2 | -2/+40 |
| | |||||
* | ws/i965: allow NULL buffer in winsys::bo_unreference | Keith Whitwell | 2009-11-04 | 1 | -0/+6 |
| | | | | Special case to avoid clutter in the driver | ||||
* | i965g: pull in a copy of intel_decode.c for now | Keith Whitwell | 2009-11-04 | 6 | -11/+1835 |
| | | | | | With the stubbed out, non-hardware xlib winsys, trivial/clear runs and prints a plausible command stream | ||||
* | i965g: hook up flush-frontbuffer | Keith Whitwell | 2009-11-04 | 1 | -13/+24 |
| | |||||
* | i965g: fix up batchbuffer confusion | Keith Whitwell | 2009-11-04 | 3 | -15/+26 |
| | |||||
* | i965g: plumb in some surface state | Keith Whitwell | 2009-11-04 | 3 | -8/+29 |
| | |||||
* | i965g: hook up pipe_clear functions | Keith Whitwell | 2009-11-04 | 6 | -1/+237 |
| | |||||
* | i965g: add constant buffer setter | Keith Whitwell | 2009-11-04 | 1 | -0/+24 |
| | |||||
* | i965g: add missing is_*_referenced callbacks | Keith Whitwell | 2009-11-04 | 4 | -0/+87 |
| | |||||
* | i965g: initialize surface refcount | Keith Whitwell | 2009-11-04 | 1 | -0/+2 |
| | |||||
* | i965g: add more missing pipe callbacks | Keith Whitwell | 2009-11-04 | 2 | -0/+41 |
| | |||||
* | i965g: add some missing texture creation code | Keith Whitwell | 2009-11-04 | 2 | -1/+32 |
| |