Commit graph

22026 commits

Author SHA1 Message Date
Brian Paul
b2b220e622 i965: init the tex_units_used field 2009-08-26 14:47:50 -06:00
Brian Paul
a9a6399cd3 i965: fix incorrect tex unit in emit_tex() and emit_txb()
The instructions we're translating already went through the brw_wm_pass_fp()
function which does the sampler->texture unit mapping.  We were applying
the sample->unit mapping a second time in the GLSL texture emitters.
Often, this made no difference but other times it could lead to accessing
an invalid texture and could cause a GPU lockup.
2009-08-26 14:46:58 -06:00
Brian Paul
81a101b5be i965: clean-up tex target switches 2009-08-26 14:43:45 -06:00
Brian Paul
6df38e6f5a glsl: asst. clean-ups in set_program_uniform()
Remove redunant type check for samplers (assert instead).
Move some local vars.  Update comments.
2009-08-26 14:35:45 -06:00
Brian Paul
af7315e58b i965: added texture unit sanity check
Check that all the textures needed by the current fragment program
actually exist and are valid.
2009-08-26 12:08:23 -06:00
Brian Paul
34da6024e3 i965: keep track of which texture units the fragment shader accesses
We'll use this for debug/sanity checking.
2009-08-26 12:07:03 -06:00
Brian Paul
f8b344114f i965: clean up texture target switches 2009-08-26 12:02:24 -06:00
Brian Paul
f05344fcea mesa: var renaming, new assertion 2009-08-26 12:02:24 -06:00
Brian Paul
dd528f0ec1 mesa: additional instruction field size assertions 2009-08-26 12:02:24 -06:00
Brian Paul
476290946e Merge branch 'mesa_7_5_branch' 2009-08-26 12:01:23 -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
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
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