Commit graph

29289 commits

Author SHA1 Message Date
Eric Anholt
ee7dfbbd6c intel: Use _mesa_get_current_tex_object() to clean up TFP path. 2009-11-06 11:37:31 -08:00
Eric Anholt
8f30ceaaef intel: Remove duplicated arguments from intel_miptree_match_image(). 2009-11-06 11:37:31 -08:00
Eric Anholt
2bc8bcdcd3 i965: Remove an XXX comment for testing some code that seems to work. 2009-11-06 11:37:31 -08:00
Eric Anholt
bb2dd50be0 intel: Remove obsolete comment about GEM in the spans code. 2009-11-06 11:37:31 -08:00
Eric Anholt
8e0f40d287 intel: Use PIPE_CONTROL on gen4 hardware for doing pipeline flushing.
This should do all the things that MI_FLUSH did, but it can be pipelined
so that further rendering isn't blocked on the flush completion unless
necessary.
2009-11-06 11:37:31 -08:00
Eric Anholt
caf3038123 Make a convenient int for what chipset generation we're on.
gen2/3/4 are easier to say than "8xx, 915-945/g33/pineview, 965/g45/misc",
and compares on generation are often easier than stringing together a bunch
of chipset checks.
2009-11-06 11:37:31 -08:00
Ian Romanick
4e4c2ee1fd Merge branch 'mesa_7_6_branch'
This should fix the memory leaks in the assembly parser without the
regressions.

The conflicts in program_lexer.l were related to changes in returning
strings between the branches (always return IDENTIFIER vs. returing
either IDENTIFIER or USED_IDENTIFIER).

The conflicts in program_parse.y were related to two changes in master
One change prints a variable name in an error message.  The other
change adds outputVarSize to the OUTPUT_statement rule.  The cause the
position of the IDENTIFIER to change from $2 to $3.

Conflicts:
	src/mesa/shader/lex.yy.c
	src/mesa/shader/program_lexer.l
	src/mesa/shader/program_parse.tab.c
	src/mesa/shader/program_parse.y
2009-11-06 11:17:00 -08: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
Ian Romanick
9348ac03ce ARB prog parser: Regenerate parser from previous commits. 2009-11-06 10:46:23 -08:00
Ian Romanick
d8e256f923 ARB prog parser: Release old program string in _mesa_parse_arb_{fragment,vertex}_program
The program structure passed to _mesa_parse_arb_program is just a
place holder.  The stings that actually need to be released are only
known to the functions calling _mesa_parse_arb_program, so they should
be freed there.
2009-11-06 10:46:22 -08:00
Ian Romanick
301a9b7e28 ARB prog parser: Release strings returned from the lexer that don't need to be kept 2009-11-06 10:46:22 -08:00
Ian Romanick
1c7337d46e Revert "ARB prog parser: Fix epic memory leak in lexer / parser interface"
This reverts commit 93dae6761b.

This change was completely broken when the parser uses multiple
strings in a single production.  It would be nice if bug fixes could
initially land somewhere other than the stable branch.
2009-11-06 10:46:22 -08: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
José Fonseca
96e938f62c llvmpipe: Fix build with llvm 2.6.
Fixes bug 24949.
2009-11-06 15:08:05 +00:00
Brian Paul
38d3c156dc intel: call intel_check_front_buffer_rendering() in intelClear()
fixes bug 24953.
2009-11-06 08:00:38 -07:00
Keith Whitwell
4d1ae7a546 i965g: propogate index size state 2009-11-06 14:18:28 +00:00
Keith Whitwell
11805726d3 i965g: remove references to brw_surface_bo() 2009-11-06 13:41:52 +00:00
Keith Whitwell
eacd13bcc8 i965g: plumb through fb_write target and eot data 2009-11-06 13:28:04 +00:00
Keith Whitwell
3e14a482da i965g: propogate nr_cbufs into wm prog key 2009-11-06 12:51:26 +00:00
José Fonseca
577a598dc9 mesa: Export S3_s3tc as well.
Used in Quake3.
2009-11-06 12:06:45 +00:00
José Fonseca
f611425101 mesa: Translate MAP_UNSYNCHRONIZED_BIT. 2009-11-06 12:06:44 +00:00
José Fonseca
244591ae7b gallium: Add UNSYNCHRONIZED cpu access flag. Document others. 2009-11-06 12:06:44 +00:00
Keith Whitwell
1e3910a878 i965g: init saturate field in fp dst_reg helper 2009-11-06 12:01:11 +00:00
Keith Whitwell
a485341455 i965g: add dumping for our new pass_fp output 2009-11-06 11:56:52 +00:00
Keith Whitwell
381cd2d63f i965g: disassemble each instruction as generated 2009-11-06 11:45:01 +00:00
Keith Whitwell
aab9601a75 i965g: hardwire linear interpolation for now
seems to generate saner code, need to go back and fix perspective
interpolation (and remove the hard-wire) once this is working.
2009-11-06 11:21:08 +00:00
Keith Whitwell
caf2cf884c i965g: fix some reloc counts 2009-11-06 10:38:19 +00:00
Keith Whitwell
212fb8adbd i965g: don't set up vs stack register for non-branching shaders 2009-11-06 10:24:19 +00:00
Keith Whitwell
1d6b5957c6 i965g: add DEBUG_MIN_URB flag 2009-11-06 10:19:39 +00:00
Keith Whitwell
5d7c0cf563 i965g: tgsi outputs cannot be used as source regs 2009-11-06 10:19:24 +00:00
Keith Whitwell
b216f1aa47 i965g: use curr.vertex_element state directly 2009-11-06 09:38:14 +00:00
Keith Whitwell
5a24c66915 trivial: add vbo-tri, an even simpler version of tri.c 2009-11-06 09:34:02 +00:00
Keith Whitwell
c22b47ebb1 i965g: don't emit line stipple packet if stipple disabled 2009-11-06 08:57:40 +00:00
Keith Whitwell
fc7fa678f5 i965g: populate brw_context chipset id 2009-11-06 08:57:02 +00:00
Keith Whitwell
0e80e4ea75 i965g: make sure blend color packet header is initialized
We will emit this packet at startup (dirty == ~0), even if we haven't
had the state tracker call into brw_set_blend_color() yet.

This way is a little more efficient also.
2009-11-06 08:54:01 +00:00
Keith Whitwell
018e2250b8 i965g: remove/disable inactive state atoms 2009-11-06 08:33:10 +00:00
Keith Whitwell
4a3e24522b i965g: populate wm reloc array earlier
Still have to calculate the reloc background in two places.
2009-11-06 08:29:09 +00:00
Keith Whitwell
b8e63e9210 i965g: point_rast_rule comment no longer applies
Not sure exactly what state we want here now, will need to experiment.
2009-11-06 08:28:17 +00:00
Keith Whitwell
b9bb41321a i965g: scissor off by one 2009-11-06 08:27:43 +00:00
Keith Whitwell
a49ccf0fd2 i965g: restore code to populate the relocation background
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-06 07:47:07 +00:00
Zack Rusin
25728860fc st/xorg: unify vertex buffer handling
first step on our way to batching
2009-11-06 00:19:54 -05:00