Keith Whitwell
cddc7e3a9c
brw: add dumping to gem winsys
2009-11-30 15:37:27 +00:00
Keith Whitwell
4490122d0c
i965g: remove redundant nr_attrs member
2009-11-30 15:37:27 +00:00
Dave Airlie
ca9b0e942c
i965g: remove surface from views list before freeing
...
this fixes a crash with the xorg state tracker, however it then locks
up the GPU once rendering is enabled but at least it doesn't crash.
Signed-off-by: Dave Airlie <airlied@linux.ie>
2009-11-29 18:59:19 +10:00
Dave Airlie
6f1bc4267f
i965g: link xorg state tracker with -ldrm_intel
2009-11-28 17:44:28 +10:00
Keith Whitwell
0a89ad80d9
i965g: gs nr_attrs also tracks nr fragment shader inputs
...
Or, equivalently, nr of outputs of active vertex shader varient.
2009-11-23 03:06:58 +00:00
Keith Whitwell
cd0e6619e6
i965g: correct test for unfilled modes
2009-11-23 03:00:47 +00:00
Keith Whitwell
968a7dfb29
i965g: use correct key size for vs upload
2009-11-23 01:47:57 +00:00
Keith Whitwell
21172d4358
i965g: apply linear math to both linear and perspective attrs
2009-11-23 00:58:13 +00:00
Keith Whitwell
8bf75f28de
i965g: get basic texturing working again
...
Revert to fixed-layout surface binding table -- it's probably the best
way to do this. Pass sampler and texture numbers separately even
though we're always keeping them the same at present.
2009-11-21 01:52:22 +00:00
Keith Whitwell
95d7aca4b9
i965g: fix typo converting wm src regs
2009-11-19 20:40:41 -08:00
Keith Whitwell
9507a6c206
i965g: fragment shader immediates working
2009-11-19 20:02:42 -08:00
Keith Whitwell
63b0af0775
i965g: first pass at vs immediates in curbe
2009-11-19 19:51:14 -08:00
Keith Whitwell
3fafe2b969
progs/vp: add param and imm test
2009-11-19 19:50:19 -08:00
Keith Whitwell
d2f4c80c8b
i965g: get linear vs perspective interpolation working again
2009-11-19 19:41:25 -08:00
Keith Whitwell
4fb77ef840
i965g: include interpolation info in fs signature
2009-11-19 19:31:32 -08:00
Keith Whitwell
34a01929d5
i965g: special case setup when fs has no inputs
2009-11-19 19:29:33 -08:00
Keith Whitwell
47cef2bb8f
i965g: add new state flag tracking fs signature changes
2009-11-19 18:55:18 -08:00
Keith Whitwell
c58e20fbbb
i965g: fix typo in previous commit
2009-11-19 18:47:07 -08:00
Keith Whitwell
7e5cd3eb14
progs/fp: add simple imm, param tests
2009-11-19 16:53:02 -08:00
Keith Whitwell
8db59a1fa3
i965g: setup nr_attrs should track nr fragment shader inputs
...
This would be equivalent to taking the nr outputs of the vp varient
2009-11-19 16:14:44 -08:00
Keith Whitwell
1b9eda4c74
i965g: get fragment constants sort-of working
2009-11-19 16:09:39 -08:00
Keith Whitwell
9e4f3eaf66
i965g: make the load-before-use vs immediate path work
2009-11-19 15:04:00 -08:00
Keith Whitwell
25cbf9b4da
i965g: fix initialization of texture width/height/depth arrays
...
Will remove these arrays in another branch - they're completely redundant.
2009-11-19 14:47:24 -08:00
Keith Whitwell
6b1ede0110
i965g: remove more references to nr_vp_outputs in wm compilation
...
We're really more concerned about how many inputs the fragment shader
is expecting.
2009-11-18 14:40:43 -08:00
Keith Whitwell
1877e6cd2d
i965g: handle special vs outputs specially
...
Where vs output semantic tags indicate an output is signficant for
fixed function processing (such as clipping, unfilled modes, etc),
retain information about that output so that we can get to it easily
later on.
Fix up the unfilled processing, but hard-wire edgeflag to one for now.
With this change, trivial/tri-unfilled works.
2009-11-17 14:50:49 -08:00
Keith Whitwell
d299ee771b
i965g rename offset_edge to offset_edgeflag
2009-11-17 14:50:49 -08:00
Keith Whitwell
c5f9713bd3
i965g: remove droppings in xlib winsys
2009-11-15 12:25:18 -08:00
Keith Whitwell
d03a1c2216
i965g: restore check on line smooth state
2009-11-14 16:06:57 -08:00
Keith Whitwell
2f54d02d20
i965g: consult fs inputs when laying out vs output regs
...
Vertex shader now emits just the FS inputs, in the positions and order
expected by the fragment shader.
This means potentially regenerating the vertex shader to match
different fragment shader's input layouts.
2009-11-11 18:51:58 -08:00
Keith Whitwell
0c547d63c4
i965g: skip over vertex position output when preallocating FS inputs
2009-11-11 18:51:57 -08:00
Keith Whitwell
a010307e0a
i965g: some more cases where file_max[] is used without obligatory +1
2009-11-11 18:51:57 -08:00
Keith Whitwell
e4d174ea1b
i965g: smaller upload buffer for index data
2009-11-11 18:51:57 -08:00
Keith Whitwell
d86e9079a8
i965g: fix off-by-one on curbe upload
2009-11-11 18:51:57 -08:00
Keith Whitwell
e243279a48
i965g: avoid use of internally generated immediates
...
Currently not working, so don't generate more of them.
2009-11-11 18:51:57 -08:00
Keith Whitwell
98c2b53381
trivial: make tri-orig more closely match the original version of tri...
2009-11-11 18:51:57 -08:00
Jakob Bornecrantz
cbad97b685
i965g: Fixup texture formats
2009-11-07 17:47:00 +00:00
Jakob Bornecrantz
229f6b9a7e
i965g: Formalize on S8Z24 as the suported depth format
2009-11-07 15:47:21 +00:00
Jakob Bornecrantz
1f94c06d3f
i965g: Fixup buffer creation function
...
First tri!
2009-11-06 20:45:40 +00:00
Jakob Bornecrantz
9708ce874e
i965g: Add texture transfer functions
...
They don't seem to work. Maybe we are forgetting to flush the gpu or something.
2009-11-06 20:45:08 +00:00
Jakob Bornecrantz
dc97a5d782
i965g: Match pitch modification on get buffer as well
...
This is a ugly hack in order to match what the intel
X driver gives us. However putting this in the winsys
where it fits better forces it reach more into the
driver then it already does.
2009-11-06 19:05:41 +00:00
Jakob Bornecrantz
8353162a4c
progs/trivial: Ignores
2009-11-06 18:40:23 +00:00
Jakob Bornecrantz
833f5bbfaf
i965g: First clear!
2009-11-06 18:34:23 +00:00
Keith Whitwell
4fbe6c4e4e
i965g: get rid of cc key, simplify state upload
...
Keep a valid reloc table active between uploads, avoid
recalculating it every time.
2009-11-06 17:26:52 +00:00
Jakob Bornecrantz
0532cc0c86
i965g: trivial/clear can now send stuff to hardware
...
Added a flag if we should send commands to hardware
as what we send isn't all that correct.
2009-11-06 17:03:01 +00:00
Jakob Bornecrantz
2eb6b0defe
i965g: Fix texture blanket function
2009-11-06 16:40:54 +00:00
Jakob Bornecrantz
215b49ae1e
i965g: Add functions needed by the winsys
2009-11-06 15:55:06 +00:00
Jakob Bornecrantz
6949d5c777
i965g: Winsys whitespace
2009-11-06 15:55:06 +00:00
Jakob Bornecrantz
68b5a501c5
i965g: Build winsys again
2009-11-06 15:55:06 +00:00
Jakob Bornecrantz
12ea198fd2
i965g: Header whitespace
2009-11-06 15:55:06 +00:00
Keith Whitwell
86c32df3e0
i965g: get brw_state_debug.c building
2009-11-06 15:40:16 +00:00