Commit graph

23447 commits

Author SHA1 Message Date
Michel Dänzer
e2aedfa620 r300: Endianness fixes for recent vertex path changes.
Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
2009-06-07 16:40:09 +10:00
Maciej Cencora
58982f8af1 r300: vertex array stride = 0 means that data are tightly packed in the array 2009-06-07 16:40:04 +10:00
Maciej Cencora
ca13937ef9 r300: GL_(U)SHORT and GL_(U)BYTE with < 4 components can also be HW accelerated
Also when index format is GL_UBYTE, convert it to GL_USHORT not GL_UINT.
Fix license header too.

Reported by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-06-07 16:39:58 +10:00
Maciej Cencora
a8c7c96be7 r300: remove unused code 2009-06-07 16:39:54 +10:00
Maciej Cencora
72c78b9992 r300: rewrite vertex setup for software T&L path using functions from software TCL path 2009-06-07 16:39:47 +10:00
Maciej Cencora
6cd0628f9f r300: prepare for some code duplication removal 2009-06-07 16:39:43 +10:00
Maciej Cencora
365799caea r300: enable EXT_vertex_array_bgra extensions 2009-06-07 16:39:39 +10:00
Maciej Cencora
fd80128e15 r300: add hw accelerated support for different vertex data formats 2009-06-07 16:39:33 +10:00
Maciej Cencora
e98082997c r300: prepare for different vertex data type support 2009-06-07 16:39:28 +10:00
Maciej Cencora
a27b689d08 r300: fixup vertex attributes ordering
Always allocate the vertex program input registers in the same order as the vertex attributes are passed in vertex arrays.
2009-06-07 16:39:23 +10:00
Maciej Cencora
ab60a44331 r300: always pass 4 color components to RS unit
Even if we don't pass all 4 color components to vertex shader unit, the vertex program can generate the missing components.
2009-06-07 16:39:16 +10:00
Nicolai Hähnle
c1ccc7d539 radeon: Provide a more detailled GL_RENDERER string.
Display the chip family and PCI ID. This can be parsed easily,
and essentially all information that the driver has about the chip can be
deduced from it.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-06-01 19:02:17 +02:00
Jerome Glisse
5dcbcbfca4 r300: when using cs path emit scissor in the cmdbuffer 2009-05-28 13:48:38 +02:00
Jerome Glisse
2f9189d538 r300: rework texture offset emission. 2009-05-28 11:40:58 +02:00
Jerome Glisse
3a6dd3ebb3 radeon: emit scissor before emiting vertices 2009-05-27 21:50:03 +02:00
Jerome Glisse
6141c9ba71 radeon: emit scissor when using cs submission style. 2009-05-27 09:36:07 +02:00
Jerome Glisse
9dee2f20a2 radeon: on update drawable don't firevertices as it might be call from GetLock
To avoid locking bug we shouldn't not call firevertices from this path
as it's call from radeon get lock.
2009-05-25 16:05:45 +02:00
Jerome Glisse
714f5e689f r200: emit scissor when dri2 is enabled
In DRI1 kernel emit scissor but in dri2 cs path we have to
explicitly program them.
2009-05-25 15:47:39 +02:00
Jerome Glisse
39ef33708c r200: fix multitexturing in dri2 path 2009-05-25 13:17:22 +02:00
Jerome Glisse
80f1ac87f2 r200: emit cliprect with indexed primitive 2009-05-25 11:29:32 +02:00
Jerome Glisse
9b1efcb87c radeon: realloc dma if needed after revalidate
Revalidate can trigger flushing and dma buffer deallocation,
so retry allocation on such case.
2009-05-24 16:24:53 +02:00
Nicolai Hähnle
7dd184dc4d radeon: Remove drawable & readable from radeon_dri_mirror
The duplication of state data caused a crash due to double-free on destruction
of context, because a variable wasn't correctly null'ed out.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-05-24 15:41:53 +02:00
Jerome Glisse
434f920042 radeon: reading back to scratch reg through status map doesn't work
For some unknown reasons the scratch reg value doesn't endup in the status
map at the scratch reg offset, this is a temporary work around until we
figure out why it doesn't work.
2009-05-22 23:44:44 +02:00
Jerome Glisse
d7cc0eb479 radeon: maxbuffer size is in bytes 2009-05-21 13:49:15 +02:00
Jerome Glisse
a13e96359b r200: fix vbo array rendering 2009-05-20 22:19:40 +02: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
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
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
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
Corbin Simpson
301d238c1a r300-gallium: Always do VTE, never software viewport.
This makes glxgears draw properly with SW TCL.
2009-05-18 09:51:09 -07:00
Brian Paul
edfbf7dccb Merge branch 'mesa_7_5_branch'
Conflicts:

	Makefile
	src/mesa/main/version.h
2009-05-18 10:36:50 -06:00
Brian Paul
7ce105d2e6 st/mesa: fix incorrect src/dst stride params to _mesa_generate_mipmap_level()
The stride needs to be in texels, not bytes.
2009-05-18 10:28:04 -06:00
Brian Paul
adabd0e81e mesa: comments for _mesa_generate_mipmap_level() 2009-05-18 10:27:31 -06:00
Brian Paul
30320f0afb softpipe: add texture target sanity check assertion 2009-05-18 10:13:44 -06:00
Brian Paul
14e5bff97b st: fix incorrect target parameter to screen->is_format_supported()
We were passing a GL texture target instead of a pipe_texture_target enum.
2009-05-18 10:12:40 -06:00
Brian Paul
df37cde309 mesa: added linux-osmesa-static config
Contributed by Nicolas Noble.  See SF bug #2792536
2009-05-18 08:47:22 -06:00
Brian Paul
6e61700541 docs: link to 7.5 relnotes 2009-05-18 07:17:46 -06:00
Brian Paul
da0d4e1db6 docs: emphasize the incomplete status of the nouveau/R300 gallium drivers 2009-05-18 07:17:36 -06:00
Aidan Thornton
f2445dfd85 Initialize psp->waitX/waitGL for swrast_dri.so.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21053 .
2009-05-18 12:47:00 +02:00
Jerome Glisse
d039cf4574 radeon: fix DRI1 cmd stream 2009-05-18 10:13:57 +02:00