Benjamin Franzke
dc520d4fef
egl/wayland: Fix possible lockup in drm initialization
...
Lockup happens when wl_drm interface is not available.
2011-04-29 17:05:16 +02:00
Marek Olšák
f8279fb9d8
r600g: print opcodes names instead of numbers
2011-04-29 13:16:40 +02:00
Marek Olšák
8b558451ad
r600g: implement EXT_packed_float
2011-04-29 11:31:55 +02:00
Marek Olšák
b48359184e
util: implement R11G11B10_FLOAT pack/unpack functions
...
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-29 11:31:55 +02:00
Marek Olšák
1271424615
mesa, util: move RGB9E5 conversion functions to gallium/util
...
Also use MAX3 and incorporate Ian's suggestion in texformat.c.
I don't think wrapping u_format_rgb9e5.h in another header and thus making it
more complicated is worth it.
2011-04-29 11:31:55 +02:00
Marek Olšák
de9f55437a
r600g: trivially implement EXT_texture_shared_exponent
...
Nothing else needed.
2011-04-29 11:31:55 +02:00
Marek Olšák
349184be36
util: implement R9G9B9E5 pack and unpack functions
...
softpipe and llvmpipe support done (sampler only).
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-29 11:31:55 +02:00
Christopher Egert
608a4a17fe
i915g: Enable S3TC texture support
...
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Christopher Egert <cme3000@gmail.com>
Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2011-04-29 02:15:07 +02:00
Brian Paul
8cce283038
llvmpipe: move active_query assignment
...
Fixes piglit regression.
2011-04-28 12:41:49 -06:00
Brian Paul
284191560b
llvmpipe: move active_query assignment in lp_setup_begin_query()
...
If we run out of bin memory and do an early return from
lp_setup_begin_query() we'd omit setting the setup->active_query
pointer. Then, when lp_setup_end_query() was later called, the
assertion for setup->active_query == pq would fail. Moving the
assigment in lp_setup_begin_query() avoids that.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2011-04-28 07:51:55 -06:00
Brian Paul
0be6ae74e9
svga: emit user-defined clip plane state
...
User-defined clip planes were a swtnl fallback before.
2011-04-27 11:51:30 -06:00
Marek Olšák
b8de75d537
util: make macros MIN3, MAX3, MIN4, MAX4 little more efficient
2011-04-27 13:16:35 +02:00
Marek Olšák
7e5953fca2
gallium/nouveau: fix printf warnings
2011-04-27 13:16:35 +02:00
Marek Olšák
31200d0688
gallivm: fix warning: ‘value’ may be used uninitialized in this function
...
The path where it's uninitialized is guarded by an assert.
2011-04-27 13:16:35 +02:00
Marek Olšák
1e5dc6a778
svga: fix warning: ‘uc.ui’ may be used uninitialized in this function
...
This is safe because it's initialized if buffers & PIPE_CLEAR_COLOR and
probably doesn't have any effect otherwise.
2011-04-27 13:16:35 +02:00
nobled
39cd791f34
os: simplify ifdef
...
The actual code that needs this include is just using
"if defined (PIPE_OS_UNIX)", and the two conditions should match.
This should also make the file compile under Hurd.
2011-04-27 11:35:02 +01:00
Benjamin Franzke
6a35ed1f66
winsys/wayland: Fix typo in Makefile
...
Reported by dir1212 on irc.
2011-04-25 18:17:07 +02:00
Benjamin Franzke
d72e7f0dd9
st/egl: Add wayland shm softpipe support
2011-04-25 10:45:57 -04:00
Benjamin Franzke
34fd282b27
st/egl: Generalize wayland backend a bit
2011-04-25 10:45:56 -04:00
Benjamin Franzke
aaa3c0d6de
winsys: Add wayland shm sw winsys
2011-04-25 10:45:56 -04:00
Henri Verbeet
b2a98c3531
r600g: Unify comment style somewhat.
...
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-04-25 14:06:22 +02:00
Henri Verbeet
d7577ae3a6
r600g: Cleanup the big endian support a bit.
...
In particular, make sure the code is at least compiled on little endian
systems.
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-04-25 14:06:21 +02:00
Henri Verbeet
32001c2244
r600g: Use EG constants in EG r600_colorformat_endian_swap().
...
This would actually fail to compile when PIPE_ARCH_BIG_ENDIAN is defined.
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
2011-04-25 14:06:21 +02:00
Vinson Lee
077b1a6144
r600g: Remove r600_helper.c from SConscript.
...
This is a follow-up to commit d737857ed2 .
2011-04-24 23:58:39 -07:00
Marek Olšák
71667533d1
r600g: remove some pointless and unused functions
2011-04-25 01:20:40 +02:00
Marek Olšák
512c814849
r600g: do not reset device to 0 when doing unrelated operations
...
Seems to be a copy-paste bug.
2011-04-25 01:20:40 +02:00
Marek Olšák
def6a91a62
r600g: trivially implement LATC/3DC
...
Passes fbo-generatemipmap-formats.
2011-04-25 01:20:40 +02:00
Dave Airlie
d737857ed2
r600g: drop r600_helper.c no point in it
...
move the one function into state common
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-25 09:06:14 +10:00
Dave Airlie
de48199693
r600g: enable EXT_draw_buffers2
...
Doesn't cause any piglit regression and passes the fbo-draw-buffers-blend
test.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-25 06:55:09 +10:00
Dave Airlie
0a9cec3475
r600g: fix glean clipflat test.
...
the provoking vertex doesn't apply to quad/strip/polygon.
This fixes clipFlat on r600g.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-24 20:35:06 +10:00
Marek Olšák
0b3122cfcb
r300g: reorder caps
2011-04-24 12:00:00 +02:00
Marek Olšák
0c71da18ee
r300g: fix exposing caps on r300-r400
...
Broken with 72239d16cd .
2011-04-24 12:00:00 +02:00
Dave Airlie
6372660d12
r600g: fix glsl-fs-abs-neg
...
the hw does neg after abs, so don't neg the source in the ABS instruction case.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-24 11:04:46 +10:00
Dave Airlie
77dc4c154c
r600g: fix bank swizzle calcs for scalar only operations.
...
In the initial code if we had nothing in the vector slots r would
never get reset to 0, so we'd fail to compile shaders, after the previous
commit this would happen for the LIT tests. When I fixed that we did a lot
of unnecessary loops through all the vector states when we had no vector
slots filled. So this patch optimises thing for the scalar only state.
This fixes the 3 LIT piglit tests on r600g.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-24 08:33:19 +10:00
Dave Airlie
22d5a71e4d
r600g: PV/PS have cycle restrictions in scalar operations
...
In the R600 ISA document:
Section 4.7.5 Cycle restrictions for the ALU.trans states that
PV/PS have cycle restrictions wrt constants.
This is part of a fix for the LIT tests
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-24 08:30:08 +10:00
José Fonseca
de29ee0e6d
graw: Replace dead symlinks to delete python statetracker shaders with their contents.
2011-04-23 11:07:27 +01:00
Brian Paul
931432fea6
draw: fix point/line/tri flushing bug in vbuf code
...
Need to reset the point/line/tri functions to point to the "first"
versions whenever we flush vertices. Fixes unfilled polygon rendering
errors seen in demos/samples/logo.c. See comments for more info.
NOTE: This is a candidate for the 7.10 branch.
2011-04-22 13:39:50 -06:00
Marek Olšák
72239d16cd
r300g: do not advertise color_buffer_float on r300 and r400
...
It seems they can't do unclamped vertex colors. Tested on RV350.
2011-04-22 20:25:24 +02:00
Benjamin Franzke
b1a9172277
egl/wayland: Update to buffer.damage addition
2011-04-22 12:21:37 -04:00
Marek Olšák
673cec467a
r300g: disallow A16F,L16F,LA16F,I16F texture formats on DRM<2.8.0
2011-04-22 16:19:41 +02:00
Benjamin Franzke
400a99a679
st/egl: Update to wayland protocol,egl changes
2011-04-22 08:56:36 -04:00
Marek Olšák
4ad63659c0
galahad,util: warn on resource target mismatch in copy_region
...
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-04-21 15:51:18 +02:00
Marek Olšák
883d8a0b44
gallium: add fallback for copying buffers to all drivers
...
Just to keep drivers working.
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-04-21 15:51:18 +02:00
Marek Olšák
64f55216e4
util: add a simple memcpy path for copying buffers in util_resource_copy_region
...
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
2011-04-21 15:51:18 +02:00
Alex Deucher
abee17057f
r600g: fix userspace fences again
...
reinstate b7617346dc after the
rework in 6067a2a67f .
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-20 13:09:09 -04:00
Fredrik Höglund
6067a2a67f
r600g: don't flush the dest caches on every draw
...
Keep track of when the caches are dirty, and only flush them when
the framebuffer state is set and when the context is flushed.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-20 09:08:15 +10:00
Brian Paul
8b7f760f83
translate: disable clamping of instanced array indexes
...
This fixes piglit's draw-instanced-divisor test for softpipe on both
the generic and SSE paths. This is temporary until we have the
correct per-array max_index information.
2011-04-19 16:13:47 -06:00
Alex Deucher
08d1c91e6c
r600g: add evergreen+ big endian support
...
Based on Cédric's r6xx/r7xx patch.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-19 13:35:19 -04:00
Cédric Cano
843dfe3206
r600g: add big endian support for r6xx/r7xx
...
Signed-off-by: Cedric Cano <ccano@interfaceconcept.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-19 13:02:14 -04:00
Dave Airlie
66866d642f
r600g: add cb support for snorm formats.
...
Check for signed type and enable SNORM.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-19 20:44:13 +10:00