Keith Whitwell
658da189b6
i965g: remove duplicate viewport state in brw_context
16 years ago
Keith Whitwell
8f0e51be47
i965g: correct sense of writedisable flags
16 years ago
Keith Whitwell
b229ee342f
brw: push more dumping into the winsys
16 years ago
Keith Whitwell
a70e6178d4
i965g: correct size of surf_bo array
16 years ago
Keith Whitwell
205871c76a
i965g: use Elements in loops over arrays
16 years ago
Keith Whitwell
674c390aaf
i965g: add const qualifiers
16 years ago
Keith Whitwell
aa9773d056
i965g: disassemble more than one instruction at a time
16 years ago
Keith Whitwell
203adb8ea6
i965g: remove old dumping code
16 years ago
Keith Whitwell
61a8ab3359
i965g: call dissassembler for appropriate data uploads
16 years ago
Keith Whitwell
c796aed5dd
i965g: add lots of error checks and early returns
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.
16 years ago
José Fonseca
31b8b1dd36
i965g: Don't dump pads or dwords aliases.
16 years ago
Keith Whitwell
09454f68e5
i965g: hook up dumpers in dumping winsys
16 years ago
José Fonseca
9069c791d0
i965g: Dumper for i965 structures.
16 years ago
Keith Whitwell
6ac38232ee
i965g: add data type tags to aid dumping/decoding
16 years ago
Keith Whitwell
b2bf5f98d9
i965g: use pipe_error return value for brw_batchbuffer_require_space
trivial/tri runs without crashing (on debug winsys) but still produces
obviously incorrect command buffers.
16 years ago
Keith Whitwell
2475e5db67
i965g: fix compiler warning
16 years ago
Jakob Bornecrantz
47cbbb7253
i965g: Builds with scons
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]
16 years ago
Jakob Bornecrantz
643bb3419d
i965g: Fix debug check
16 years ago
Jakob Bornecrantz
ce4f23aab9
i965g: Build with configure
16 years ago
Jakob Bornecrantz
37c6820d0d
i965g: Do not create a symlink for i965_dri.so
16 years ago
Jakob Bornecrantz
9bc59a9b6d
i915g: Do not create a symlink for i965_dri.so
16 years ago
Keith Whitwell
ffc2446391
i965g: enable line stipple packet emit
With this change, trivial/tri manages to build and emit
a fairly unconvincing command buffer (to the debug winsys),
and then crashes.
16 years ago
Keith Whitwell
c2e51effe6
i965g: fix order of calculation of brw->wm.nr_surfaces
16 years ago
Keith Whitwell
220566d8dc
i965g: consolidate some includes
16 years ago
Keith Whitwell
e84e86ecb2
i965g: fix some asserts
16 years ago
Keith Whitwell
7a49bd6d15
i965g: remove redundant screen pointer in brw context struct
16 years ago
Keith Whitwell
e3e084c660
i965g: initialize winsys pointer in surface cache
16 years ago
Keith Whitwell
518171a887
i965g: init pointer to null, avoid segfault
16 years ago
Keith Whitwell
bf4a518cf2
i965g: clean up wm init_registers func
16 years ago
Keith Whitwell
1b611f99b4
i965g: hook up some missing vertex shader code
16 years ago
Keith Whitwell
cc8105d740
i965g: hook up some vertex state funcs
16 years ago
Keith Whitwell
18efe9a687
ws/i965: allow NULL buffer in winsys::bo_unreference
Special case to avoid clutter in the driver
16 years ago
Keith Whitwell
951fdac566
i965g: pull in a copy of intel_decode.c for now
With the stubbed out, non-hardware xlib winsys, trivial/clear runs and
prints a plausible command stream
16 years ago
Keith Whitwell
cde48bc8d1
i965g: hook up flush-frontbuffer
16 years ago
Keith Whitwell
b8bb48f452
i965g: fix up batchbuffer confusion
16 years ago
Keith Whitwell
c5ed7b6e76
i965g: plumb in some surface state
16 years ago
Keith Whitwell
e18f223da7
i965g: hook up pipe_clear functions
16 years ago
Keith Whitwell
19119517ce
i965g: add constant buffer setter
16 years ago
Keith Whitwell
4e335a213a
i965g: add missing is_*_referenced callbacks
16 years ago
Keith Whitwell
0cf432c7a1
i965g: initialize surface refcount
16 years ago
Keith Whitwell
58e3360c11
i965g: add more missing pipe callbacks
16 years ago
Keith Whitwell
99394a737a
i965g: add some missing texture creation code
16 years ago
Keith Whitwell
5f8dde99ed
i965g: stubs for brw_pipe_vertex.c
16 years ago
Keith Whitwell
7373bc0e02
i965g: hook up pipe sampler callbacks
16 years ago
Keith Whitwell
9706a83bc9
i965g: hook up more pipe_context functions
16 years ago
Keith Whitwell
a09b3d5097
i965g: add missing buffer functions
16 years ago
Keith Whitwell
82a19f0974
ws/i965: add load-time driver registration
Otherwise xlib state-tracker doesn't know about us.
16 years ago
Keith Whitwell
b549bbb498
ws/i965: add butt-ugly linker hack
Need more linker magic to keep the glX symbols externally visible even
though they started off in a .a file.
16 years ago
Keith Whitwell
b1d2933214
i965g: hook up brw_screen.c
16 years ago
Keith Whitwell
211d7ab22b
i965g: add standalone xlib debug winsys
Create a dummy winsys that just debug-prints on calls into the winsys
functions. Will use this to get to the point where we are generating
sane-looking debug dumps and diassembly.
Also fix various warnings generated with the new compiler flags set in
this config.
16 years ago