Marek Olšák
596f09aa7b
r300g: implement draw_instanced for HWTCL
2011-04-25 14:04:51 +02:00
Marek Olšák
9e59ed59c1
mesa: add stricter checks for float formats in the texstore memcpy path
...
E.g. when the internal format was RGBA16F and the source was RG, it would use
memcpy.
2011-04-25 13:45:05 +02:00
Marek Olšák
628544421d
mesa: implement generate-mipmap fallback for RGB10_A2
...
I hit this when testing RV350, which lacks RGB10_A2 render target
support. It had been missed when implementing the format and probably
unused by anything else too.
Not applicable to 7.10.
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-04-25 13:45:05 +02:00
Christian König
5aa2641243
vdpau: implement and cleanup PresentationQueueTarget destruction
2011-04-25 11:39:41 +02:00
Christian König
7cde6722b0
xvmc: futher optimize ycbcr upload
2011-04-25 10:33:48 +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
Christian König
7f04fe5338
[g3dvl] merge idct stage 2 and mc ycbcr stage into a single draw
2011-04-25 01:20:15 +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
863eecd0d8
st/mesa: fix regression since a22aba4eae
...
"st/mesa: check image size before copy_image_data_to_texture()" caused
a regression in piglit fbo-generatemipmap-formats test on all gallium drivers.
Level 0 for NPOT textures will not match minified values, so don't do this
check for level 0.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-04-25 05:59:47 +10:00
Christian König
104ac00663
[g3dvl] rework fence handling and add r600g workaround
2011-04-24 20:08:11 +02:00
Christian König
3ea7e2713c
[g3dvl] start supporting different render target formats
...
Let's start with NV12, but anything else shouldn't be much of a problem any more.
2011-04-24 19:29:34 +02:00
Christian König
b54909910c
[g3dvl] remove resource_format workaround
2011-04-24 16:04:23 +02:00
Christian König
4e6528428d
r600g: implement clamp_fragment_color handling
...
The first small step to get arb_color_buffer_float working.
2011-04-24 13:03:16 +02:00
Christian König
68cc6bc5d8
r600g: remove the unneeded bo from COLOR[0-9]_INFO
...
The COLOR[0-7]_INFO registers doesn't neeed a bo.
2011-04-24 12:47:42 +02: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
Bryan Cain
f18a086326
glsl: Fix typos in comments.
2011-04-23 21:33:47 -07: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
Eric Anholt
e4da46e007
mesa: Add some comments about FRAG_RESULT_COLOR vs FRAG_RESULT_DATAn.
...
This came from reading what swrast does, and 965 now behaves the same
and gallium appears to as well.
2011-04-23 13:21:58 -07:00
Eric Anholt
d7f4c4e1b1
mesa: Fix fragment.color (no index) writes with OPTION ARB_draw_buffers.
...
Fixes a bug in Trine where fragment.color would write
FRAG_RESULT_COLOR (which is interpreted by drivers as being the "write
this to all color buffers" option) instead of FRAG_RESULT_DATA0 (just
the first target).
Fixes piglit ATI_draw_buffers/arbfp-no-index.
2011-04-23 13:21:57 -07:00
Eric Anholt
79bde19ef9
i965: Don't double-emit fragment.color writes for MRT with ARB_fp.
2011-04-23 13:21:57 -07:00
Eric Anholt
bad8da8b00
i965: Fill in the remaining fields of gen5+ sampler default color.
...
Still doesn't fix texwrap.
2011-04-23 13:21:57 -07:00
Eric Anholt
e1e6545c88
i965: Fix batch decode for the gen5+ sampler default color.
2011-04-23 13:21:57 -07:00
Eric Anholt
1f32c665c8
intel: Add support for ARB_sampler_objects.
...
This extension support consists of replacing
"gl_texture_obj->Sampler." with "_mesa_get_samplerobj(ctx, unit)->".
One instance of referencing the texture's base sampler remains in the
initial miptree allocation, where I'm not sure we have a clear
association with any texture unit.
Tested with piglit ARB_sampler_objects/sampler-objects.
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-23 13:21:57 -07:00
Eric Anholt
1df72402d9
i965: Add support for NV_conditional_render.
...
Since we lack hardware support for it, this is a simple matter of
checking _mesa_check_conditional_render at the entrypoints, and
suppressing it for the metaops where it doesn't apply.
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-23 13:21:57 -07:00
Eric Anholt
332822bd3d
swrast: Disable glAccum drawing during conditional rendering.
2011-04-23 13:21:56 -07:00
Eric Anholt
fb60040b69
meta: Don't do conditional rendering on GenerateMipmaps and BlitFramebuffer.
...
The NV_conditional_render spec calls out specific operations that
conditional rendering applies to, which doesn't include these.
Fixes NV_conditional_render/generatemipmap on swrast.
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-23 13:14:56 -07:00
Eric Anholt
4093fdce6d
i965: Add support for ARB_texture_compression_rgtc.
...
Tested with rgtc-teximage-0[12].
EXT_texture_compression_rgtc/fbo-generatemipmap-formats fails in NPOT
just like S3TC does.
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-23 13:14:56 -07:00
Eric Anholt
7d1a2056a8
mesa: Don't assert on the compressed convertformat for GenerateMipmaps.
...
This assertion doesn't make any sense to me -- the convertFormat is
already something valid (tested above), and the BaseFormat dictated by
convertFormat doesn't matter to the function about to be called (it's
the datatype/comps that were pulled out of convertFormat).
Fixes assertion failure in
GL_EXT_texture_compression_rgtc/fbo-generatemipmap-formats
(still has a rendering failure in NPOT like S3TC does).
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-23 13:14:56 -07:00
Eric Anholt
bc880b8d40
mesa: Choose RGTC formats for GL_COMPRESSED_RED, GL_COMPRESSED_RG.
...
We were falling through to the default R8 and RG88 formats instead of
compressing when possible. Noticed by swrast fbo-blending-formats
actually doing rendering.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
2011-04-23 13:14:56 -07:00
José Fonseca
da49de811d
mesa/gdi: Address compiler warnings.
...
In particular the function prototypes.
2011-04-23 20:25:11 +01:00
José Fonseca
5bd545f5aa
mesa/gdi: Remove InitCritSections.cpp.
...
We are now able to declare global critical sections through other
mechanisms so this is useless code.
2011-04-23 18:44:19 +01:00
José Fonseca
336487450e
Drop fx windows driver.
...
Irrelevant now that glide driver was removed.
2011-04-23 18:32:56 +01:00
Jakob Bornecrantz
fed8a07ddb
glu: Fix linux build
2011-04-23 17:01:19 +02:00
Jakob Bornecrantz
97efac09b2
glu: Clone the enviroment
2011-04-23 16:58:48 +02:00
Christian König
fa31b1095e
Merge remote branch 'origin/master' into pipe-video
...
Conflicts:
configs/linux-dri
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_state.c
src/gallium/include/pipe/p_format.h
src/gallium/tests/graw/fragment-shader/frag-abs.sh
src/gallium/tests/graw/fragment-shader/frag-add.sh
src/gallium/tests/graw/fragment-shader/frag-cb-1d.sh
src/gallium/tests/graw/fragment-shader/frag-cb-2d.sh
src/gallium/tests/graw/fragment-shader/frag-dp3.sh
src/gallium/tests/graw/fragment-shader/frag-dp4.sh
src/gallium/tests/graw/fragment-shader/frag-dst.sh
src/gallium/tests/graw/fragment-shader/frag-ex2.sh
src/gallium/tests/graw/fragment-shader/frag-face.sh
src/gallium/tests/graw/fragment-shader/frag-flr.sh
src/gallium/tests/graw/fragment-shader/frag-frc.sh
src/gallium/tests/graw/fragment-shader/frag-kil.sh
src/gallium/tests/graw/fragment-shader/frag-lg2.sh
src/gallium/tests/graw/fragment-shader/frag-lit.sh
src/gallium/tests/graw/fragment-shader/frag-lrp.sh
src/gallium/tests/graw/fragment-shader/frag-mad-immx.sh
src/gallium/tests/graw/fragment-shader/frag-mad.sh
src/gallium/tests/graw/fragment-shader/frag-max.sh
src/gallium/tests/graw/fragment-shader/frag-min.sh
src/gallium/tests/graw/fragment-shader/frag-mov.sh
src/gallium/tests/graw/fragment-shader/frag-mul.sh
src/gallium/tests/graw/fragment-shader/frag-rcp.sh
src/gallium/tests/graw/fragment-shader/frag-rsq.sh
src/gallium/tests/graw/fragment-shader/frag-sge.sh
src/gallium/tests/graw/fragment-shader/frag-slt.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-abs.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-absneg.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-neg.sh
src/gallium/tests/graw/fragment-shader/frag-srcmod-swz.sh
src/gallium/tests/graw/fragment-shader/frag-sub.sh
src/gallium/tests/graw/fragment-shader/frag-tempx.sh
src/gallium/tests/graw/fragment-shader/frag-xpd.sh
src/gallium/tests/graw/vertex-shader/vert-abs.sh
src/gallium/tests/graw/vertex-shader/vert-add.sh
src/gallium/tests/graw/vertex-shader/vert-arl.sh
src/gallium/tests/graw/vertex-shader/vert-arr.sh
src/gallium/tests/graw/vertex-shader/vert-cb-1d.sh
src/gallium/tests/graw/vertex-shader/vert-cb-2d.sh
src/gallium/tests/graw/vertex-shader/vert-dp3.sh
src/gallium/tests/graw/vertex-shader/vert-dp4.sh
src/gallium/tests/graw/vertex-shader/vert-dst.sh
src/gallium/tests/graw/vertex-shader/vert-ex2.sh
src/gallium/tests/graw/vertex-shader/vert-flr.sh
src/gallium/tests/graw/vertex-shader/vert-frc.sh
src/gallium/tests/graw/vertex-shader/vert-lg2.sh
src/gallium/tests/graw/vertex-shader/vert-lit.sh
src/gallium/tests/graw/vertex-shader/vert-lrp.sh
src/gallium/tests/graw/vertex-shader/vert-mad.sh
src/gallium/tests/graw/vertex-shader/vert-max.sh
src/gallium/tests/graw/vertex-shader/vert-min.sh
src/gallium/tests/graw/vertex-shader/vert-mov.sh
src/gallium/tests/graw/vertex-shader/vert-mul.sh
src/gallium/tests/graw/vertex-shader/vert-rcp.sh
src/gallium/tests/graw/vertex-shader/vert-rsq.sh
src/gallium/tests/graw/vertex-shader/vert-sge.sh
src/gallium/tests/graw/vertex-shader/vert-slt.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-abs.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-absneg.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-neg.sh
src/gallium/tests/graw/vertex-shader/vert-srcmod-swz.sh
src/gallium/tests/graw/vertex-shader/vert-sub.sh
src/gallium/tests/graw/vertex-shader/vert-xpd.sh
src/gallium/tools/trace/dump.py
src/gallium/tools/trace/format.py
src/gallium/tools/trace/model.py
src/gallium/tools/trace/parse.py
2011-04-23 14:27:40 +02:00
José Fonseca
d34ddad9a5
scons: Build glu.
2011-04-23 13:16:03 +01:00
Christian König
24d76d2966
[g3dvl] cleanup error handling
2011-04-23 13:58:08 +02:00
José Fonseca
15eaf8297e
scons: Build classic mesa gdi driver.
...
Build as
scons platform=windows mesagdi
2011-04-23 12:41:28 +01:00
Christian König
2e6274fc3b
[g3dvl] make ycbcr stream and block data a public interface
2011-04-23 13:24:35 +02:00
José Fonseca
4c92f3fa6e
osmesa: Fix Mingw build.
...
Build as
scons platform=windows osmesa
2011-04-23 12:23:42 +01:00
José Fonseca
8e8a56eaa0
scons: Build osmesa.
...
Just type
scons osmesa
2011-04-23 12:22:59 +01:00
José Fonseca
c89cca648d
mapi/glapi: Avoid warnings about visibility being unsupported on MinGW.
2011-04-23 12:14:39 +01:00