Michal Krol
9a1447d449
glsl/pp: Store both line number and file index in a single token.
2009-09-24 08:43:05 +02:00
Alex Deucher
1bf0651d9b
r600: fix up ordering of functions in draw prims path
...
Shaders and IB need to be updated and allocated before
calling validatebuffers.
2009-09-23 19:42:07 -04:00
Maciej Cencora
84c7afd9e0
r300: fallback to software rendering if we are out of free texcoords
...
Fixes #22741
2009-09-23 23:22:33 +02:00
Alex Deucher
20e7738293
r600: fix r700PredictRenderSize for draw prims path
2009-09-23 16:54:12 -04:00
Richard Li
8a2b0f6415
r600 : add hw index buffer draw support.
2009-09-23 16:16:11 -04:00
Brian Paul
2acd5de226
swrast: add lod bias when texture sampling
...
Mostly fixes progs/demos/lodbias when MESA_TEX_PROG=1. But the LOD still
seems off by -1 or so.
May be an issue with the params passed to _swrast_compute_lambda()
2009-09-23 13:36:44 -06:00
Brian Paul
890f37d4d9
mesa: don't bias LOD in shader interpreter; do it in swrast
2009-09-23 13:36:44 -06:00
Brian Paul
ad935c3f47
swrast: fix typo in partial derivatives parameter passing
2009-09-23 13:36:43 -06:00
Adam Jackson
8abe77a75a
Finish removing glcore
2009-09-23 15:22:19 -04:00
Alex Deucher
53051b8cb5
r600: fix copy/paste typo
2009-09-23 15:02:19 -04:00
Alex Deucher
ec205bbd57
r600: fix some warnings
2009-09-23 14:58:46 -04:00
Andre Maasikas
2d2f49c919
r600: add support for CUBE textures, also TXP
...
seems to work here ...
2009-09-23 14:58:46 -04:00
Keith Whitwell
be66ff51ec
st/mesa: trim calculated userbuffer size
...
In get_array_bounds we were previously defining a user buffer sized as
(nr_vertices * stride). The trouble is that if the vertex data
occupies less than stride bytes, the extra tailing (stride - size)
bytes may extend outside the memory actually allocated by the app and
caused a segfault.
To fix this, define a the buffer bounds to be:
ptr .. ptr + (nr-1)*stride + element_size
2009-09-23 18:55:46 +01:00
Brian Paul
35af3f94a3
llvmpipe: move tile cache datatypes into .c file since they're private
2009-09-23 11:53:12 -06:00
Brian Paul
b4a40d1052
softpipe: replace macros with inline functions
...
And update comments.
2009-09-23 11:51:52 -06:00
Brian Paul
e2329f2795
softpipe: white-space/formatting fixes and updated comments
2009-09-23 11:35:33 -06:00
Brian Paul
5244ce786a
llvmpipe: added max texture/surface size sanity check
...
Carried over from softpipe driver.
2009-09-23 11:05:00 -06:00
Brian Paul
b26f1df920
llvmpipe: increase MAX_WIDTH/HEIGHT to match max texture size
2009-09-23 11:04:07 -06:00
Brian Paul
de25f82067
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/gallium/drivers/softpipe/sp_tile_cache.c
2009-09-23 11:00:04 -06:00
Brian Paul
e41707beca
softpipe: added max texture/surface size sanity check
2009-09-23 10:50:38 -06:00
Brian Paul
84b956c29b
softpipe: increase MAX_WIDTH/HEIGTH 4096 to match max texture size
2009-09-23 10:46:27 -06:00
Keith Whitwell
890679d432
Merge branch 'softpipe-opt'
...
Conflicts:
progs/demos/cubemap.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_texture.c
2009-09-23 17:37:28 +01:00
Keith Whitwell
a1fa770c01
gallium/include: update some comments
2009-09-23 17:04:48 +01:00
Zack Rusin
1ddb217d8e
st/xorg: fix a typo
...
it'd be too easy, eh
2009-09-23 12:05:13 -04:00
Zack Rusin
5a7f708530
st/xorg: keep the user buffer contents around
...
Michel noticed that they were getting out of scope
2009-09-23 12:03:35 -04:00
José Fonseca
31f1571d1f
wgl: Eliminate the shared layer; implement WGL API on top of the ICD callbacks.
...
While the WGL API has been stale for decades now, the ICD interface has
been updated with new Windows versions, so it is much easier to define
everything in terms of the ICD interfaces, which is pretty much what
Microsoft's opengl32.dll does anyway.
2009-09-23 10:32:52 +01:00
José Fonseca
f8c11526c0
gdi: Update for WGL statetracker source reorg.
2009-09-23 10:32:51 +01:00
José Fonseca
f724036f00
wgl: Flatten the source tree.
...
It is easier to have the WGL API on top of the ICD callbacks as
Microsoft's own implementation does, than to have a seperate shared
entity. This source reorganization is in antecipation of that.
2009-09-23 10:32:51 +01:00
José Fonseca
8d1af5991d
wgl: Fix debug_printf format specifiers.
2009-09-23 10:32:51 +01:00
José Fonseca
21a949365d
gallium: Update vendor string.
2009-09-23 10:32:50 +01:00
Michal Krol
8212e4d9fa
grammar: Include the correct glsl pp header.
2009-09-23 09:40:40 +02:00
Michal Krol
1ed1dc8b41
glsl/pp: Include missing headers.
2009-09-23 09:40:24 +02:00
Michal Krol
2f89e1a5a1
glsl/pp: Add 0' and 1' to dictionary.
2009-09-23 09:37:37 +02:00
Michal Krol
32966991c6
glsl/pp: Check for reserved macro names.
2009-09-23 09:33:12 +02:00
root
75276ea316
softpipe: fix bugs in POT texture sampling when texture is not square
...
Before, if level was greater than the logbase2(base size) we were
doing a negative bit shift and winding up with garbage values.
2009-09-22 20:14:10 -06:00
Brian Paul
5dbedf3d7e
softpipe: additional assertions
2009-09-22 16:59:28 -06:00
Brian Paul
0670df5cb2
softpipe: disable a _debug_printf()
2009-09-22 16:42:15 -06:00
Brian Paul
02f2bcdf1d
Merge branch 'mesa_7_6_branch'
2009-09-22 16:06:18 -06:00
Brian Paul
926b965ed5
mesa: don't re-use the meta glDrawPixels VBO; create a new one each time
...
This should help to work around bugs 24083 and 23670.
2009-09-22 15:58:49 -06:00
Richard Li
98d5ec10d0
r600 : add draw_prim support, make up one lost change.
2009-09-22 17:26:23 -04:00
Richard Li
81283b0bf0
r600 : add draw_prim support.
2009-09-22 17:04:49 -04:00
Brian Paul
f338de4018
mesa: fix more buffer object error messages
2009-09-22 13:47:49 -06:00
Keith Whitwell
fe9ca0f718
softpipe: need to write depth/stencil values even when stencil fails
2009-09-22 20:47:37 +01:00
Keith Whitwell
207764894b
softpipe: set quad->facing value
2009-09-22 20:47:07 +01:00
Brian Paul
ba002eb196
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
...
Conflicts:
src/mesa/main/bufferobj.c
2009-09-22 13:44:43 -06:00
Brian Paul
bc75464760
glx: include string.h to silence missing memset() prototype warning
2009-09-22 13:19:15 -06:00
Brian Paul
52cadf7592
mesa: fix error message text
2009-09-22 13:19:11 -06:00
Nicolai Hähnle
8cc12ffb34
r300: Fix crash reported in bug #24066
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-22 21:00:01 +02:00
Keith Whitwell
b1139e9ad8
softpipe: fix polygon stipple
2009-09-22 19:38:34 +01:00
Keith Whitwell
b626176f06
softpipe: fix occlusion counting
2009-09-22 19:26:08 +01:00