Corbin Simpson
e511110b71
r300-gallium: Add derived state for vertex formats.
...
Next up: The evil RS block.
2009-02-13 23:22:39 -08:00
Dave Airlie
f3a1f321cf
radeon: check for valid bo in release arrays
2009-02-14 12:05:36 +10:00
Dave Airlie
fcc7a691dc
radeon: remove old cube code
2009-02-14 12:05:36 +10:00
Brian Paul
c51c822ee0
i965: rewrite the code for handling shader subroutine calls
...
Previously, the prog_instruction::Data field was used to map original Mesa
instructions to brw instructions in order to resolve subroutine calls. This
was a rather tangled mess. Plus it's an obstacle to implementing dynamic
allocation/growing of the instruction buffer (it's still a fixed size).
Mesa's GLSL compiler emits a label for each subroutine and CAL instruction.
Now we use those labels to patch the subroutine calls after code generation
has been done. We just keep a list of all CAL instructions that needs patching
and a list of all subroutine labels. It's a simple matter to resolve them.
This also consolidates some redundant post-emit code between brw_vs_emit.c and
brw_wm_glsl.c and removes some loops that cleared the prog_instruction::Data
fields at the end.
Plus, a bunch of new comments.
2009-02-13 17:18:36 -07:00
Brian Paul
74b6d55864
i965: add missing break for OPCODE_RET case
...
This doesn't effect correctness, but we were emitting an extraneous ADD.
2009-02-13 17:18:36 -07:00
Brian Paul
97937e0ac8
i965: the return value of translate_insn() is never used. Make it void.
2009-02-13 17:18:36 -07:00
Brian Paul
2f2082bf16
i965: minor clean-ups
2009-02-13 17:18:36 -07:00
Brian Paul
2f78d4a2cd
i965: code clean-ups, comments, and minor refactoring
2009-02-13 17:18:36 -07:00
Brian Paul
7cffcaaba1
i965: updated comments
2009-02-13 17:18:35 -07:00
Brian Paul
643d940138
intel: turn on GL_ARB_shading_language_120
...
It's done in the Mesa GLSL compiler. The only part of it that might
matter in drivers is the centroid sampling option for MSAA.
2009-02-13 17:18:35 -07:00
Brian Paul
11b75eafc7
i965: more reformatting/clean-up
2009-02-13 17:18:35 -07:00
Brian Paul
1a693e90b5
i965: s/__inline/INLINE/
2009-02-13 17:18:35 -07:00
Brian Paul
984c9636ed
i965: formatting and indentation fixes
2009-02-13 17:18:35 -07:00
Brian Paul
14dc493733
i965: fix inconsistant indentation in brw_wm.c
2009-02-13 17:18:35 -07:00
Robert Ellison
88b702e8c4
i965: Eric Anholt's patch for bumping up texture sizes
...
I'm committing this because it fixes a conform failure; the failure occurs
on the TextureProxy test, where the test attempts to create proxy textures
at every level, but fails at the last level (border == 1, width == 1,
height == 1) because it's beyond MAX_TEXTURE_LEVELS.
Eric's original comment was:
idr said that in his review swrast was ready for it, and the 965 driver is
advertising it already though it has been resulting in many crashes due to
arrays using these defines not being big enough.
2009-02-13 15:19:04 -07:00
Jakob Bornecrantz
b6779056a1
trivial: Make tri-fog a bit more interesting to look at
2009-02-13 23:03:57 +01:00
Keith Whitwell
89e2b9c6c2
Merge commit 'origin/draw-vbuf-interface'
2009-02-18 12:54:26 +00:00
José Fonseca
ea4bf267e4
util: Move p_debug.h into util module.
...
The debug functions depend on several util function for os abstractions, and
these depend on debug functions, so a seperate module is not possible.
2009-02-18 12:05:26 +00:00
José Fonseca
06cd416d7c
util: (Re)enable memory debugging for all windows platforms.
2009-02-18 11:17:06 +00:00
José Fonseca
673d01eda9
wgl: Report memory leaks.
2009-02-18 11:17:06 +00:00
Keith Whitwell
c706ea4f45
draw: Reuse xmm registers.
2009-02-18 10:08:19 +00:00
Corbin Simpson
c613e366a9
r300-gallium: Properly init shader state.
2009-02-17 21:34:12 -08:00
Corbin Simpson
d25304a2f7
r300-gallium: Consolidate state updates.
2009-02-17 21:33:59 -08:00
Brian Paul
9f731c8962
mesa: add some debug code to help diagnose incomplete FBO attachments (disabled)
2009-02-17 16:47:54 -07:00
Brian Paul
be8dd01678
glsl: fix mistake in a comment
2009-02-17 16:31:59 -07:00
Brian Paul
f59719c6c7
mesa: turn on reporting of GLSL version 1.20
...
The new array features, precision/invariant/centroid qualifiers, etc. were
done a while back. The glGetString(GL_SHADING_LANGUAGE_VERSION) query returns
"1.20" now (for drivers that support it anyway).
2009-02-17 16:17:13 -07:00
Brian Paul
6eabfc27f1
glsl: fix an array indexing bug
...
This fixes a bug found with swizzled array indexes such as in "array[index.z]"
where "index" is an ivec4.
2009-02-17 16:17:13 -07:00
Brian Paul
edd8cb8c87
glsl: added --params option to stand-alone GLSL compiler
...
Prints program parameter info
2009-02-17 16:17:13 -07:00
Brian Paul
f88a901598
mesa: when printing/dumping instruction, include relative addressing info
...
Not all cases were handled before.
2009-02-17 16:17:13 -07:00
Eric Anholt
fd51cf1531
intel: Fix tri clear to do FBO color attachments as well.
...
This is a 2% win in fbo_firecube, and would avoid a sw fallback for
masked clears.
2009-02-17 11:30:48 -08:00
Eric Anholt
c06f4e2a37
i965: Fix fallback on stencil drawing to fbo when the visual lacks stencil.
...
Noticed this with the fbotexture demo.
2009-02-17 11:30:09 -08:00
Eric Anholt
60953059ea
intel: Clean up several 965 memory leaks on context destroy.
2009-02-17 10:58:32 -08:00
Alan Hourihane
baef7c5474
mesa: remove old comment as it's fixed elsewhere now.
2009-02-17 09:56:33 +00:00
Brian Paul
07855a1d76
softpipe: some improvements to texture tile cache
...
Use a somewhat better function in tex_cache_pos() to get better caching.
Increase number of cache entries to 50.
Also fix a texture invalidation bug. If texture is marked as modified,
invalidate all texture tiles.
2009-02-16 18:53:45 -07:00
Alan Hourihane
b9de2089b1
gallium: fix glean's vertProg1
...
RSQ test 2 (reciprocal square toot of negative value)
2009-02-16 20:23:18 +00:00
Dave Airlie
c0ae4d3c55
radeon/r300: fix warnings
2009-02-14 07:49:15 +10:00
Jakob Bornecrantz
b57031624e
trivial: Add a tri-unfilled-fog test
2009-02-13 21:18:41 +01:00
Corbin Simpson
8e234d655d
r300-gallium: Add draw_arrays for swtcl_emit.
...
The more I look at this, the more bugs I see.
2009-02-17 21:32:40 -08:00
Corbin Simpson
8ec853d4df
r300-gallium: Properly init shader state.
2009-02-17 21:31:33 -08:00
Corbin Simpson
ecb177e198
r300-gallium: Consolidate state updates.
2009-02-17 21:30:55 -08:00
Corbin Simpson
46ef26eb90
r300-gallium: Hook up new swtcl vbuf stage.
...
Hold on to your hats.
2009-02-17 19:23:09 -08:00
Corbin Simpson
81daa5323e
r300-gallium: Turn swtcl_emit into a vbuf_render stage.
...
Movin' out of the Stone Ages.
2009-02-17 19:04:39 -08:00
Corbin Simpson
75f950c222
r300-gallium: Update r300_reg from classic Mesa.
...
Mostly needed a few defines for index buffers, but there's other goodies too.
2009-02-17 18:50:07 -08:00
Dave Airlie
cd4e37c8fb
radeon: add initial cubemap support appears to work
2009-02-14 05:57:52 +10:00
Jakob Bornecrantz
54e20828e6
demos: Add polygon mode point to isosurf
2009-02-13 17:53:49 +01:00
Jakob Bornecrantz
94189b3001
nv20: Use the new draw vbuf interface
2009-02-17 15:04:02 +00:00
Jakob Bornecrantz
7973d47cad
nv10: Use the new draw vbuf internface
2009-02-17 14:47:42 +00:00
Jakob Bornecrantz
1ba3849192
nv04: Use the new draw vbuf interface
2009-02-17 14:37:56 +00:00
Michel Dänzer
7c8836e9ef
gallium: Various coordinate fixups for texture transfers.
...
Fixes glReadPixels, gl(Copy)TexSubImage, glCopyPixels.
2009-02-13 17:34:29 +01:00
Corbin Simpson
073a73e4c7
r300-gallium: Various thingies.
...
Add formats to framebuffer emit, fix up shader function names,
make sure fragment format is emitted for r500.
2009-02-13 08:18:26 -08:00