Commit Graph

33810 Commits

Author SHA1 Message Date
Jakob Bornecrantz
39c81dada0 st/dri: Refactor init code a bit
Reviewed-by: George Sapountzis <gsapountzis@gmail.com>
2010-04-16 10:17:31 +01:00
Vinson Lee
6c954dd128 st/mesa: Remove NULL check of pointer that could not be NULL.
cbuf has been dereferenced twice earlier in the same if-block. It is
either not NULL or a crash has already occurred.
2010-04-16 00:55:35 -07:00
Corbin Simpson
b1a89ea1ab r300/compiler: Fix texture instruction readmasks.
No immediate benefit, it was just bugging me.
2010-04-16 00:43:18 -07:00
Corbin Simpson
2c5b35807e r300/compiler: Fix magic numbers in readmasks. 2010-04-16 00:43:17 -07:00
Corbin Simpson
a089fe2816 r300/compiler: Oops, this slipped through. 2010-04-16 00:43:17 -07:00
Corbin Simpson
2e74bc440e r300/compiler: Save Q for mirror and repeat. 2010-04-16 00:43:17 -07:00
Corbin Simpson
f8a1418680 r300/compiler: Split off texture fixes to their own file.
Yes, I'm fully aware this generates subpar code on r500.
2010-04-16 00:43:17 -07:00
Vinson Lee
8c45677588 drisw: Move pointer dereferences to after NULL checks. 2010-04-16 00:36:50 -07:00
Vinson Lee
e0543599b5 st/egl: Remove unnecessary header. 2010-04-16 00:23:25 -07:00
Vinson Lee
c0301af883 st/dri: Remove unnecessary header. 2010-04-16 00:16:08 -07:00
Vinson Lee
7b8c4f22d4 st/mesa: Move dereference and assignment to after NULL check. 2010-04-15 23:15:05 -07:00
Vinson Lee
8978e45e50 mesa: Add missing format specifiers in error strings. 2010-04-15 17:17:29 -07:00
Marek Olšák
80d89aa0d2 r300/compiler: fix repeat wrap mode for TXP and NPOTs
No idea why st/mesa unnecessarily inserts TXP where TEX is sufficient.
Also re-enabling the NPOT fallback for repeat in r300g.
2010-04-16 02:04:18 +02:00
Jakob Bornecrantz
4855b568ba i915g: Create a special 2D layout helper 2010-04-15 23:52:55 +01:00
Jakob Bornecrantz
97c326417c i915g: Fix 2D layouts
This should fix 2D compressed layouts
2010-04-15 23:52:54 +01:00
Jakob Bornecrantz
e17324372b i915g: Remove unused args 2010-04-15 23:52:54 +01:00
Marek Olšák
17b41f80bd r300/compiler: kill off RC_WRAP_CLAMP
A variant thereof might be later reintroduced for the mirrored-clamp modes.
2010-04-15 23:58:38 +02:00
Marek Olšák
85cbff5b60 r300g: mask out the mirrored bit correctly in the registers
It was previously done wrong + now it shouldn't render garbage,
so that the NPOT fallback can get in.
2010-04-15 23:17:35 +02:00
Marek Olšák
a28ee4aa02 r300g: fix the MIRROR_CLAMP_TO_BORDER wrap mode
I guess this was a typo.
2010-04-15 22:06:10 +02:00
Marek Olšák
eee220d65d r300g: add missing r300_state.h
I am very bad at this.
2010-04-15 10:24:06 +02:00
Marek Olšák
6b46df9616 r300g: disable the REPEAT NPOT fallback until it works
It causes regressions. I haven't tested the MIRROR wrap modes,
so not sure about that..
2010-04-15 10:15:42 +02:00
Marek Olšák
948ce60a26 r300g: do not use NPOT fallback for CLAMP wrap modes
These work just fine.
2010-04-15 10:15:34 +02:00
Marek Olšák
6bd6f4cd49 r300g: pick a new fragment shader when either a sampler state or view is changed 2010-04-15 10:10:28 +02:00
Vinson Lee
ebf765a324 st/mesa: Remove unnecessary headers. 2010-04-14 23:49:31 -07:00
Xavier Chantry
a1fdf12160 nvfx: dont swizzle stuff into GART
swzsurf doesn't support GART

Thanks to Marcin Kościelnicki <koriakin@0x04.net> for spotting that !

This fixes corruption in etracer and the following related errors :
[14381.551927] [drm] nouveau 0000:01:00.0: PGRAPH_ERROR - nSource:
PROTECTION_ERROR, nStatus: INVALID_STATE
[14381.551945] [drm] nouveau 0000:01:00.0: PGRAPH_ERROR - Ch 2/2 Class
0x039e Mthd 0x0184 Data 0x00001cd9:0x00001cd9

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>

Adapted by Luca Barbieri for mesa master.
2010-04-15 08:15:22 +02:00
Luca Barbieri
42d9f2bb7b nouveau: replace vtxbuf/idxbuf caps with BO_ flags in nouveau_screen and fix uncached reads on nv3x
Faster, simpler and more flexible.

Also, we set those flags properly on nv3x so that we don't allocate buffers in GART.

Since on AGP GART is uncached, OpenGL doesn't distinguish between vertex and index buffers, and we don't support hardware index buffers for now, this caused uncached reads.

Also check bind and not usage for PIPE_BIND_* flags, got broken in the gallium-resources transition.
2010-04-15 08:13:12 +02:00
Vinson Lee
18dc0f0b1c i915g: Remove unnecessary header. 2010-04-14 22:59:37 -07:00
Dave Airlie
7d93f2bf84 r300g: fix regression in texdepth.
texdepth stopped working when npot went in, this brings it back
to life.

< MostAwesomeDude> That looks like what I was going to do.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-15 14:56:20 +10:00
Vinson Lee
c8efed89ba gallium/tests: Add test case for pipe_barrier. 2010-04-14 18:06:54 -07:00
Jakob Bornecrantz
cb56b31f84 swrastg: Fix defines to be able to load more then one sw driver 2010-04-14 23:10:17 +01:00
Brian Paul
8239fd4baa llvmpipe: comments for fence functions 2010-04-14 14:32:09 -06:00
Brian Paul
4d8f34e909 progs/tests: added stencilreaddraw to SConscript, Makefile 2010-04-14 14:32:09 -06:00
Brian Paul
205253b015 progs/tests: new stencilreaddraw.c test
Based on the zreaddraw.c test.
2010-04-14 14:32:09 -06:00
Brian Paul
816fe9dd09 mesa: add -D__STDC_CONSTANT_MACROS to linux-llvm
This is needed in more places (st_cb_feedback.c) since the new LLVM
code has been added to the gallium/draw module.
2010-04-14 14:32:09 -06:00
Arpad Borsos
b3a68cdc6f softpipe: Fix division by zero
This can be triggered by running the cairo tests using the gl backend
and softpipe.

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-04-14 14:26:37 -06:00
Kristian Høgsberg
3a82c8c562 egl_dri2: Enable KHR_gl_texture_2D_image
Forgot to set the enabled bit when I implemented the extension.
2010-04-14 16:22:48 -04:00
Marek Olšák
d72f1c3b80 r300g: fix possible crash when shader compilation fails
This hopefully fixes the crash in the FDO bug #27634, not the bug itself.
2010-04-14 20:29:42 +02:00
Michael Schmidt
d9793fc3ac Initialize DRI2 swap interval to 0
https://bugs.freedesktop.org/show_bug.cgi?id=27628
2010-04-14 10:15:47 -04:00
Michael Schmidt
0863c7e499 Initialize DRI2 swap interval to 0
https://bugs.freedesktop.org/show_bug.cgi?id=27628
2010-04-14 10:12:42 -04:00
Kristian Høgsberg
a30f7eb064 glxinfo: Print drawable type in verbose mode 2010-04-14 10:07:15 -04:00
Marek Olšák
ef19b2fbab r300g: simplify get_shader_constant to be rc-constant-state specific 2010-04-14 13:25:51 +02:00
Marek Olšák
116c863892 st/mesa: put ATI_texture_mirror_once in the right place 2010-04-14 12:55:25 +02:00
Vinson Lee
30d99ff7e0 progs/gallium: Fix relative path in Makefile. 2010-04-14 01:17:24 -07:00
Corbin Simpson
2ee0d19ccf u_blitter: Coords are normalized.
Thanks to Luca Barbieri for spotting this one.
2010-04-13 23:29:03 -07:00
Marek Olšák
ef745cf95d r300g: remove the CS compenstation for non-atomized states
Now there aren't any. If CS overflow occurs, the fix should go directly
before the problematic BEGIN_CS.
2010-04-14 04:48:19 +02:00
Marek Olšák
905fa3a07b r300g: remove always_dirty flag and correct leftovers 2010-04-14 04:48:19 +02:00
Marek Olšák
eb4e399ef0 r300g: atomize beginning occlusion query 2010-04-14 04:48:19 +02:00
Marek Olšák
3da70606b3 r300g: atomize VS constant buffer 2010-04-14 04:48:19 +02:00
Marek Olšák
abc2f29dd2 r300g: emit VS immediates along with VS code 2010-04-14 04:48:19 +02:00
Marek Olšák
6793506faa r300g: make setting up fragment depth output less hackish 2010-04-14 04:48:19 +02:00