Brian Paul
2bcf787de1
progs/glsl: handle window resizes in texaaline.c
2009-08-26 11:56:56 -06:00
Brian Paul
488b3c4d1b
progs/glsl: add special Makefile rule for samplers_array
2009-08-26 11:55:15 -06:00
Brian Paul
f6d34c2058
progs/glsl: change samplers.c to better test sampler/texture indexing
...
Now the left half is yellow and the right half is red, with the gradients
going in opposite directions.
2009-08-26 11:53:25 -06:00
Brian Paul
04d170794a
glsl: fix bug in sampler array indexing
...
Need to add the 'offset' parameter when indexing the parameter array.
Before, if we were setting arrays of samplers, we were actually only
setting the 0th sampler's value.
Because of how progs/glsl/samplers.c is constructed, this wasn't showing
up as a failure in the samplers_array output.
2009-08-26 11:39:31 -06:00
Alex Deucher
7ffbe48706
r600: fix two sided stencil
2009-08-26 13:33:06 -04:00
Alex Deucher
f988c750a9
r600: add missing radeon_cs_space_set_flush call
...
fixes crash in etracer reported by kdekorte on IRC
2009-08-26 13:10:15 -04:00
Zack Rusin
a0966c41a9
st/xorg: create basic vertex shader
2009-08-26 12:50:47 -04:00
Zack Rusin
b324aacf13
st/xorg: create basic fragment shader
2009-08-26 12:50:47 -04:00
Alex Deucher
490f640cd5
r600: make reloc_chunk size dynamic
2009-08-26 12:17:44 -04:00
Alex Deucher
f33853e56d
r600: fix memory leak
2009-08-26 11:09:59 -04:00
Alex Deucher
18e0fea55b
r300: r4xx and rs4xx also have lte discard regs
2009-08-26 10:53:30 -04:00
Jakob Bornecrantz
53b3cdaee2
st/dri: Add some debug code
2009-08-26 14:30:54 +02:00
Jakob Bornecrantz
57230d96ed
st/xorg: Temporary fix for none stencil visuals
...
Should be replaced with something looking at the proper
glx visual for the buffers.
2009-08-26 14:27:50 +02:00
Jakob Bornecrantz
23fe960be0
st/xorg: Find out correct type for depth stencil buffers
2009-08-26 13:45:31 +02:00
Jakob Bornecrantz
aab0bedb8c
st/dri: Redo config generation
2009-08-26 12:29:28 +02:00
Michel Dänzer
b2e1b25881
st/xorg: Add support for dirty framebuffer region reporting.
...
Add a BlockHandler which flushes the context and reports the dirty region
gathered using the X server damage layer.
In the interim, with dirty region reporting only allocate textures for the
framebuffer and shared pixmaps (e.g. DRI2 buffers) and fall back to software
for other pixmaps. This will be improved in the future.
2009-08-26 13:18:37 +02:00
Cooper Yuan
dadf138ddb
r600: Update vertex fetch shader if necessary
2009-08-26 16:21:10 +08:00
Ben Skeggs
1664bc1a37
st/dri: make the GL_ARB_map_buffer_range entrypoints available
2009-08-26 16:18:39 +10:00
Dave Airlie
674835f184
radeon/r100/r200: actually init the OQ support properly
2009-08-26 14:16:54 +10:00
Dave Airlie
b6df23d8b3
radeon/r200: OQ support for r200 in theory.
...
this is an untested port of the r100 OQ code
2009-08-26 14:03:48 +10:00
Dave Airlie
5484428d72
radeon: add r100 OQ support with kms.
...
This adds OQ support for the r100 chipsets, it requires
KMS unless someone wants to make a kernel patch to add support
for OQ regs.
2009-08-26 13:56:45 +10:00
Brian Paul
42675ff0e3
progs/glsl: call ValidateShaderProgram()
2009-08-25 17:46:11 -06:00
Brian Paul
a088e5631d
mesa: validate shader before drawing (for debugging, disabled)
2009-08-25 17:46:10 -06:00
Brian Paul
d8b4f8c848
glsl: update a texture/sampler comment
2009-08-25 17:46:10 -06:00
Brian Paul
c90fca3da4
glsl: implement shader sampler validation
...
Shader validation should fail if there are two samplers of different types
which reference the same texture unit. For example, if a cubemap sampler
and a 2D sampler both reference texture unit 0, that's invalid.
2009-08-25 17:46:10 -06:00
Brian Paul
2050baba96
mesa: use gl_texture_index type for gl_program::SamplerTargets
2009-08-25 17:46:10 -06:00
Brian Paul
fa6299cb31
progs/util: added ValidateShaderProgram() to shaderutil.c
2009-08-25 17:46:10 -06:00
Brian Paul
b7d2023cf9
i965: add some texture unit/target assertions
2009-08-25 17:46:10 -06:00
Brian Paul
f9ce0a91dc
mesa: print some program fields in binary too
2009-08-25 17:46:10 -06:00
Pauli Nieminen
dbf59de6d2
r200: Add scissor to state atom list.
...
Scissors are jsut one of states that we have to emit so it should be in state list
2009-08-26 01:53:17 +03:00
Pauli Nieminen
5d10890795
radeon/r600: Fix remaining warnings when building 64 bit binary.
2009-08-25 22:16:19 +03:00
Pauli Nieminen
87f83e193a
r200: Addd missing parameter to debug output.
2009-08-25 21:39:58 +03:00
Pauli Nieminen
75df73838a
r200: Fix commit size prediction.
...
Scissor are emited for every primitive so fix that in prediction.
2009-08-25 21:36:57 +03:00
Zack Rusin
7bc4744026
xorg: insert shaders into the cache
2009-08-25 14:22:26 -04:00
Zack Rusin
23b59d3b40
exa: add basic code to cache vertex and fragment shaders
2009-08-25 14:01:58 -04:00
Zack Rusin
c7653a8333
exa: check whether the op is accelerated
2009-08-25 13:23:08 -04:00
Pauli Nieminen
c3374bf97e
radeon: Fix all compiler warnings.
2009-08-25 19:35:41 +03:00
Brian Paul
42ecb1287e
mesa: remove -I$(TOP)/src/gallium/drivers from sources.mak
...
Core Mesa and the state tracker do not depend on any gallium drivers.
2009-08-25 09:42:28 -06:00
Brian Paul
a94d66e857
Revert "glapi: Fix a possible race in getting current context/dispatch."
...
This reverts commit 17090cf3ef
.
We're reverting this because it causes ABI breakage with the X server.
Maybe re-attempt with another patch.
2009-08-25 09:37:43 -06:00
Zack Rusin
65f9d10342
xorg: revert bad merge
2009-08-25 09:58:51 -04:00
Michel Dänzer
d22bd1421c
Add support for building the Xorg state tracker with scons.
...
scons ... statetrackers=xorg
2009-08-25 15:39:05 +02:00
Pauli Nieminen
418cdc66ec
Revert "glx: Make drawables persistent untill they are changed by glXMakeCurrent"
...
This commit was not mean to end in to master yet. It is still queston if this
right design to fix the problem.
This reverts commit 45e3be3c07
.
2009-08-25 05:07:08 +03:00
Pauli Nieminen
ce7ed63f0c
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa into r600_state_predict
2009-08-25 02:36:13 +03:00
Maciej Cencora
1d5a06a1f7
r300: fix condition logic
...
The s3tc extensions are properly enabled now, when force_s3tc_enable option is set in driconf.
2009-08-25 01:30:24 +02:00
Maciej Cencora
ff235c8ccb
r300: set proper CS section size
2009-08-25 01:30:24 +02:00
Pauli Nieminen
4297f32c24
radeon/r200/r300/r600: Warn if we emit more than prediction was.
...
Prediction code making too small prediction may cause space check aserttion
failure later in rendering. So warning about any failure to predict correctly
should be fixed.
2009-08-25 02:23:52 +03:00
Zack Rusin
ffe8cc6cef
xorg: fix compilation
2009-08-24 18:42:16 -04:00
Zack Rusin
17076d700c
xorg: start on code accelerating render
2009-08-24 18:39:01 -04:00
Alex Deucher
3023328ea7
r300: add support for getting Z pipe info from drm
...
Needed for occulsion queries on rv530 chips
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-08-24 18:08:37 -04:00
Alex Deucher
8dd151b947
r600: code cleanup
2009-08-24 17:51:00 -04:00