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
Michal Krol
ddc42b6380
util: Fix util_dynarray_trim().
2010-04-13 09:00:39 +01:00
Luca Barbieri
a79521d497
nvfx: use dynamically sized rotating BO pool for fragment programs
...
Currently we used a single buffer for each fragment programs, leading to
rendering synchronization. This patch uses a doubly linked list of BOs,
which is dynamically resized if all the BOs are busy.
Note that inline image transfers could be an alternative option: this
will be explored later.
This removes one of the big performance limitations of the current
driver.
We also stop using pipe_resource internally in favor of using nouveau_bo
directly.
2010-04-13 09:55:49 +02:00
Vinson Lee
9f39d3240b
draw llvm: Initialize variable.
2010-04-13 00:49:58 -07:00
Vinson Lee
8316da7cd2
r300g: Silence uninitialized variable warning.
2010-04-13 00:35:10 -07:00
Vinson Lee
833e6f0524
st/mesa: Remove state_tracker/st_framebuffer.c from SConscript.
...
This was missed in commit da8412ec19 .
Fixes SCons build.
2010-04-13 00:29:33 -07:00
Chia-I Wu
da8412ec19
st/mesa: Drop st_public support.
...
There is no user of st_public now.
2010-04-13 15:15:43 +08:00
Chia-I Wu
a1dbd009d4
st/vega: Drop st_public support.
...
There is no user of st_public now.
2010-04-13 15:15:43 +08:00
Chia-I Wu
76708c665c
st/vega: Do not rely on st_resize_framebuffer.
...
Add vg_context_update_draw_buffer (and helpers) that duplicates the
logic of st_resize_framebuffer. Use the new function instead of
st_resize_framebuffer in vg_manager.c.
2010-04-13 15:15:43 +08:00
Luca Barbieri
50409dd71b
nvfx: fix for 64-bit systems
...
Thanks to Patrice Mandin for debugging this.
2010-04-13 09:03:15 +02:00
Luca Barbieri
bf7e0e839f
gallium/auxiliary: make util_dynarray_trim do nothing if size == capacity
2010-04-13 08:26:00 +02:00
Luca Barbieri
6c31dd1198
gallium/auxiliary: add util_dynarray_resize
2010-04-13 08:25:39 +02:00
Luca Barbieri
c572619817
gallium/auxiliary: fix util_dynarray_trim to 0 to free the data
...
This works better and preserves the
data != 0 if and only if capacity != 0 invariant.
2010-04-13 08:18:59 +02:00