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
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
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
Marek Olšák
075d9698ed
st/mesa: trivially enable ATI_texture_mirror_once
...
This is a strict subset of already-advertised EXT_texture_mirror_clamp and
shares the same enumerants.
2010-04-14 04:48:19 +02:00
Marek Olšák
36e0100e9e
r300g: kill off r300_fragment_shader::shadow_samplers and friends
2010-04-14 04:48:19 +02:00
José Fonseca
c57bac1f13
retrace: Update for recent interface changes.
2010-04-14 10:22:57 +09:00
José Fonseca
d2c5a3093f
trace: Ignore transfer_flush_region too.
2010-04-14 10:22:57 +09:00
Vinson Lee
ee9ee03cab
i915g: Fix winsys SCons build.
2010-04-13 17:17:15 -07:00
Jakob Bornecrantz
4e20781bac
i915g: Whitespace & formating
2010-04-13 23:57:43 +01:00
Jakob Bornecrantz
136bcf6cee
i915g: Mark shared layouts more clearly
2010-04-13 23:52:26 +01:00
Jakob Bornecrantz
2b64883269
i915: Fix comments about cube layouts
2010-04-13 23:52:26 +01:00
Jesse Barnes
1318848f78
Merge branch '7.8'
2010-04-13 09:40:14 -07:00
Jesse Barnes
157bdd1446
DRI2: report swap events correctly in direct rendered case
...
In the direct rendered case, we need to convert DRI2 swap complete
events to GLX events for the client to consume. This path had what
looks like a stray "& 0x75" from some earlier debugging that prevented
clients from seeing the right event code.
2010-04-13 09:39:28 -07:00
Alan Hourihane
efc69ca61c
llvmpipe: disable half float formats
2010-04-13 15:40:49 +01:00
Chia-I Wu
1e7f191d3a
gallium: Remove pipe_screen::update_buffer.
...
It has no user after the removal of st_public. Plus, it has never been
implemented by a pipe driver or winsys.
2010-04-13 21:47:23 +08:00
Alan Hourihane
cd834499eb
gallium: disable tests when using embedded build
2010-04-13 12:54:36 +01:00
José Fonseca
cd4e5879eb
scons: Fix exception when llvm-config is not present.
2010-04-13 19:42:29 +09:00