Alex Deucher
b52cdb81e2
r6xx/r7xx: fix segfault in vertex shader setup
2009-05-21 17:40:27 -04:00
Alex Deucher
1b84d228d5
r6xx: fix count on START_3D packet
2009-05-21 17:38:14 -04:00
Eric Anholt
bd0861e274
i965: fix whitespace in brw_tex_layout.c
...
The broken indentation was driving me crazy, so fix other stuff while
I'm here.
2009-05-21 10:41:49 -07:00
Eric Anholt
3a521d84ec
i956: Make state dependency of SF on drawbuffer bounds match Mesa's.
...
Noticed while debugging a weird 1D FBO testcase that left its existing
viewport and projection matrix in place when switching drawbuffers. Didn't
fix the testcase, though.
2009-05-21 10:41:39 -07:00
Eric Anholt
e78a6aa2b9
intel: Fall back on any rendering to texture with no miptree.
...
Fixes segfault on an fbo.c negative test for FBO with texture width/height
of 0. Previously we just tested for border != 0 to work around this
segfault.
2009-05-21 10:40:11 -07:00
Eric Anholt
8bba183b9e
intel: Mark the FBO as incomplete if there's no intel_renderbuffer for it.
...
This happens to rendering with textures with a border, which had resulted
in a segfault on dereferencing the irb.
2009-05-21 10:40:11 -07:00
Eric Anholt
467f18f7a5
intel: Don't segfault on glGenerateMipmaps of a cube map with one face defined.
...
This presumably applies to SGIS_generate_mipmaps as well.
2009-05-21 10:40:11 -07:00
Eric Anholt
4da58bbab0
intel: Use _mesa_CheckFramebufferStatusEXT insteaad of glCheck...
...
Fixes a segfault in our oglconform fbo test.
2009-05-21 10:40:11 -07:00
Brian Paul
02f73c43b4
mesa: added debug functions for dumping color/depth/stencil buffers
2009-05-21 09:17:09 -06:00
Brian Paul
840c09fc71
i965: rename var: s/tmp/vs_inputs/
2009-05-21 09:17:09 -06:00
Brian Paul
f7ca97f85e
mesa: remove pointless null ptr check, improved some error messages
2009-05-21 09:17:09 -06:00
Brian Paul
39d7524f7b
mesa: added _mesa_print_arrays() for debugging
2009-05-21 09:17:09 -06:00
Brian Paul
15f21bf357
mesa: updated comment for _MaxElement field
...
It's the largest array index, plus one.
2009-05-21 09:17:09 -06:00
Brian Paul
a185bcbdec
mesa: move gl_array_attrib::_MaxElement to gl_array_object::_MaxElement
...
This value is per array object.
2009-05-21 09:17:08 -06:00
Brian Paul
899c524a49
vbo: s/8/MAX_TEXTURE_COORD_UNITS/
2009-05-21 09:17:08 -06:00
Jonathan Adamczewski
2c007517b5
cell: perform triangle cull a little earlier
...
In spu_tri.c:setup_sort_vertices() triangles are culled after the
vertices are sorted. This patch moves the check a little earlier
and performs the actual check a little faster through intrinsics and
a little trickery.
Reduced code size and less work is done before a triangle is deemed
OK to skip.
2009-05-21 08:19:00 -06:00
Jonathan Adamczewski
b4824520ec
cell: unroll inner loop of spu_render.c:cmd_render()
...
It was taking approximately 50 cycles to extract the vertex indices,
calculate the vertex_header pointers and call tri_draw() for each
three vertices - .
Unrolled, it takes less than 100 cycles to extract, unpack,
calculate pointers and call tri_draw() eight times. It does have a
nasty jump-tabled switch. I'm sure that there's a better way...
Code size of spu_render.o gets larger due to the extra constants and
work in the inner loop, there are extra stack saves and loads
because there are more registers in use, and an assert. spu_tri.o
gets a little smaller.
2009-05-21 08:18:03 -06:00
Brian Paul
5b27b4ad37
st: add support for GL_EXT_vertex_array_bgra
2009-05-21 08:15:54 -06:00
Carl Worth
d2f4c2b632
minstall: Don't copy over an identical file
...
The rationale here is to avoid updating a timestamp for a file that
hasn't changed. Needless updates of the timestamp can ripple into
other projects, (xserver, etc.), useless recompiling due to a
'make install' in mesa that didn't actually change anything.
2009-05-21 07:52:13 -06:00
Jerome Glisse
d7cc0eb479
radeon: maxbuffer size is in bytes
2009-05-21 13:49:15 +02:00
Corbin Simpson
3af0952bc9
r300-gallium: r500-fs: POW.
...
I feel so unclean.
2009-05-20 23:22:16 -07:00
Corbin Simpson
cfd241e8a6
r300-gallium: r500-fs: LRP.
...
Goddammit. This cannot be the "easy way." :C
2009-05-20 21:52:11 -07:00
Corbin Simpson
f1f0893eba
r300-gallium: r500-fs: Combine function.
2009-05-20 16:53:45 -07:00
Corbin Simpson
d67fb5ea1d
r300-gallium: Prevent assert when fogcoords are present.
...
Seems like this file is the source of all bad logic. (Pun intended.)
2009-05-20 16:05:11 -07:00
Corbin Simpson
d04c85d01b
r300-gallium: Another constantbuf shader recompile test.
...
Less briefly... Shaders need to be recompiled if their constantbuf
offsets have changed. However, since we only change them from shaders if
immediates need to be emitted, we shouldn't bother if the shader doesn't
use immediates.
2009-05-20 14:55:03 -07:00
Corbin Simpson
4151c0ea91
r300-gallium: Raise constantbuf limits.
...
Still not correct, but really I don't care.
2009-05-20 14:38:22 -07:00
Corbin Simpson
364a4a8293
r300-gallium: fs: Remove cruft from way back when.
2009-05-20 14:17:27 -07:00
Corbin Simpson
0ba7f76233
radeon-gallium: Add surface_buffer_create callback.
2009-05-20 13:21:17 -07:00
Jerome Glisse
a13e96359b
r200: fix vbo array rendering
2009-05-20 22:19:40 +02:00
Corbin Simpson
9e8de1b911
r300-gallium: Make surface_copy actually load the texture in shader.
2009-05-20 12:22:24 -07:00
Corbin Simpson
b22b6f0743
r300-gallium: Add missing R481 PCI ID.
...
Per 74cb2aba on xf86-video-ati.
2009-05-20 12:08:00 -07:00
Corbin Simpson
65946ef081
r300-gallium: Make surface_copy work, and refactor buffer validation.
2009-05-20 11:46:26 -07:00
Michel Dänzer
01daeadf8c
radeon: Increase reference count of current renderbuffers.
...
Fixes
glxinfo: main/renderbuffer.c:2159: _mesa_reference_renderbuffer: Assertion
`oldRb->Magic == 0xaabbccdd' failed.
2009-05-20 17:00:57 +02:00
Michel Dänzer
b9bd1abf26
Merge branch 'master' into radeon-rewrite
...
Conflicts:
src/mesa/drivers/dri/r300/r300_context.c
src/mesa/drivers/dri/r300/r300_texstate.c
2009-05-20 17:00:48 +02:00
Jerome Glisse
c696dd0f62
radeon: set max texture size
...
This still need some work to actually report somethings reasonable
if no memory manager is available.
2009-05-20 16:34:06 +02:00
Corbin Simpson
4550423211
radeon-gallium: Don't permit reading and writing a BO in one CS.
...
This fixes some silent problems in current libdrm_radeon.
surface_copy still locks up hard.
2009-05-20 07:18:08 -07:00
root
c28e0e7d97
Add missing file from local.
2009-05-20 09:16:21 -04:00
Jerome Glisse
8308bf9ee1
r200: fix indexed draw color order and cs missmatch
2009-05-20 13:21:24 +02:00
Brian Paul
0c75cb5afe
st: reformatting, comments, var renaming
2009-05-19 20:05:28 -06:00
root
3149b87ac4
Makeup checkin for radeon code change paired with r6/7 code.
2009-05-19 16:47:39 -04:00
Brian Paul
d0eccc4187
Merge branch 'mesa_7_5_branch'
2009-05-19 10:07:45 -06:00
Mathias Fröhlich
042d9a5132
mesa: allow depth/stencil textures to be attached to GL_STENCIL_ATTACHMENT
...
See sourceforge bug #2793846 .
2009-05-19 09:59:01 -06:00
Brian Paul
c99a60c40d
mesa: assign trb->Base.StencilBits in update_wrapper().
...
When we render to a depth/stencil texture there are stencil bits.
2009-05-19 09:57:01 -06:00
Brian Paul
43d8ace88d
mesa: print more info when valid_texture_object() fails
2009-05-19 09:21:39 -06:00
Richard Li
465588cd0e
Fix nop insertion bug. redbook hello can run.
2009-05-19 10:28:40 -04:00
Jakob Bornecrantz
bd59dd69ba
trace: Improve shader wrapping
2009-05-18 20:54:09 +01:00
Jakob Bornecrantz
7d11a392d7
st/dri: Only create new textures if drawable has changed
2009-05-18 20:54:09 +01:00
Corbin Simpson
d0639d067e
r300-gallium: Fix (another) wrong value in MSPOS.
...
Again, thanks to agd5f.
2009-05-18 09:51:10 -07:00
Corbin Simpson
026f4c97dc
radeon-gallium: Remove BO validation debug.
...
It appears that that area of code "just works" much like classic Mesa's
version, so might as well not waste scrollback on it.
2009-05-18 09:51:10 -07:00
Corbin Simpson
5236ea3900
r300-gallium: Cleanup viewport state setup.
2009-05-18 09:51:09 -07:00