mesa.git
13 years ago[g3dvl] use scissor to handle compositor dst_area
Christian König [Fri, 8 Apr 2011 20:07:30 +0000 (22:07 +0200)]
[g3dvl] use scissor to handle compositor dst_area

13 years agovdpau: add compositor to mixer
Christian König [Fri, 8 Apr 2011 18:12:30 +0000 (20:12 +0200)]
vdpau: add compositor to mixer

13 years agovdpau: add compositor to presentation queue
Christian König [Fri, 8 Apr 2011 18:03:35 +0000 (20:03 +0200)]
vdpau: add compositor to presentation queue

13 years agovdpau: implement output surface creation
Christian König [Fri, 8 Apr 2011 17:21:13 +0000 (19:21 +0200)]
vdpau: implement output surface creation

13 years ago[g3dvl] stop waiting for replay of DRI2CopyRegion
Christian König [Thu, 7 Apr 2011 21:04:10 +0000 (23:04 +0200)]
[g3dvl] stop waiting for replay of DRI2CopyRegion

13 years ago[g3dvl] create composite buffer with USAGE_STREAM
Christian König [Thu, 7 Apr 2011 20:59:48 +0000 (22:59 +0200)]
[g3dvl] create composite buffer with USAGE_STREAM

Also add PIPE_TRANSFER_DONTBLOCK to mapping options

13 years ago[g3dvl] add support for different decoding entry points
Christian König [Thu, 7 Apr 2011 18:10:55 +0000 (20:10 +0200)]
[g3dvl] add support for different decoding entry points

13 years ago[g3dvl] move mapping/unmapping and uploading of blocks out of idct code
Christian König [Thu, 7 Apr 2011 17:24:22 +0000 (19:24 +0200)]
[g3dvl] move mapping/unmapping and uploading of blocks out of idct code

13 years agovdpau: implement vlVdpVideoSurfacePutBitsYCbCr
Christian König [Wed, 6 Apr 2011 18:38:16 +0000 (20:38 +0200)]
vdpau: implement vlVdpVideoSurfacePutBitsYCbCr

13 years ago[g3dvl] set buffer_format correctly
Christian König [Wed, 6 Apr 2011 18:36:31 +0000 (20:36 +0200)]
[g3dvl] set buffer_format correctly

13 years ago[g3dvl] and finally split the decoder part out of the context
Christian König [Tue, 5 Apr 2011 22:06:20 +0000 (00:06 +0200)]
[g3dvl] and finally split the decoder part out of the context

This should give a good basis to implement vdpau ontop of it.

13 years ago[g3dvl] rename ycbcr buffer to video buffer and add some more functionality
Christian König [Mon, 4 Apr 2011 21:28:18 +0000 (23:28 +0200)]
[g3dvl] rename ycbcr buffer to video buffer and add some more functionality

13 years agog3dvl/vdpau: some more indention fixes
Christian König [Sun, 3 Apr 2011 20:01:15 +0000 (22:01 +0200)]
g3dvl/vdpau: some more indention fixes

13 years ago[g3dvl] fix vertex buffer size calculation
Christian König [Sun, 3 Apr 2011 18:49:15 +0000 (20:49 +0200)]
[g3dvl] fix vertex buffer size calculation

13 years ago[g3dvl] some more debugging output in xvmc st
Christian König [Sun, 3 Apr 2011 17:57:49 +0000 (19:57 +0200)]
[g3dvl] some more debugging output in xvmc st

13 years ago[g3dvl] split compositor out of video context
Christian König [Sun, 3 Apr 2011 14:09:23 +0000 (16:09 +0200)]
[g3dvl] split compositor out of video context

Also redesign the compositor a bit and make the result a public available interface

13 years ago[g3dvl] start to cleanup the mess and provide at least basic functionality
Christian König [Sat, 2 Apr 2011 22:14:38 +0000 (00:14 +0200)]
[g3dvl] start to cleanup the mess and provide at least basic functionality

13 years ago[g3dvl] start over with vdpau decoding
Christian König [Sat, 2 Apr 2011 22:09:01 +0000 (00:09 +0200)]
[g3dvl] start over with vdpau decoding

13 years agovdpau: get state tracker to compile again
Christian König [Sat, 2 Apr 2011 21:16:21 +0000 (23:16 +0200)]
vdpau: get state tracker to compile again

13 years ago[g3dvl] remove unused color_swizzle from idct code
Christian König [Sat, 2 Apr 2011 20:36:26 +0000 (22:36 +0200)]
[g3dvl] remove unused color_swizzle from idct code

13 years ago[g3dvl] rework mpeg12 context error handling
Christian König [Sat, 2 Apr 2011 20:26:06 +0000 (22:26 +0200)]
[g3dvl] rework mpeg12 context error handling

13 years agog3dvl/xvmc: fix a stupid of by one bug
Christian König [Sat, 2 Apr 2011 18:29:27 +0000 (20:29 +0200)]
g3dvl/xvmc: fix a stupid of by one bug

13 years ago[g3dvl] remove PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT
Christian König [Sat, 2 Apr 2011 17:50:37 +0000 (19:50 +0200)]
[g3dvl] remove PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT

It wasn't fully implemented anyway.

13 years ago[g3dvl] splitt vertex element state into y, cb, cr
Christian König [Sat, 2 Apr 2011 10:05:22 +0000 (12:05 +0200)]
[g3dvl] splitt vertex element state into y, cb, cr

13 years ago[g3dvl] some minor cleanup
Christian König [Fri, 1 Apr 2011 21:47:20 +0000 (23:47 +0200)]
[g3dvl] some minor cleanup

13 years ago[g3dvl] let mc code work on the different color planes seperately
Christian König [Tue, 29 Mar 2011 18:01:49 +0000 (20:01 +0200)]
[g3dvl] let mc code work on the different color planes seperately

13 years ago[g3dvl] remove texture dependencies from mc code
Christian König [Sun, 27 Mar 2011 18:41:43 +0000 (20:41 +0200)]
[g3dvl] remove texture dependencies from mc code

13 years ago[g3dvl] introduction of ycbcr buffers
Christian König [Sun, 27 Mar 2011 17:43:02 +0000 (19:43 +0200)]
[g3dvl] introduction of ycbcr buffers

Moves most of the buffer creation out of the idct code.

13 years ago[g3dvl] no need for individual samplers for idct stage 1 & 2
Christian König [Sun, 27 Mar 2011 00:53:04 +0000 (01:53 +0100)]
[g3dvl] no need for individual samplers for idct stage 1 & 2

13 years ago[g3dvl] cleanup and improve idct error handling
Christian König [Sun, 27 Mar 2011 00:41:10 +0000 (01:41 +0100)]
[g3dvl] cleanup and improve idct error handling

13 years ago[g3dvl] improve and cleanup mc error handling
Christian König [Sun, 27 Mar 2011 00:04:00 +0000 (01:04 +0100)]
[g3dvl] improve and cleanup mc error handling

13 years ago[g3dvl] remove unused backbuffer from xvmc
Christian König [Sat, 26 Mar 2011 23:19:25 +0000 (00:19 +0100)]
[g3dvl] remove unused backbuffer from xvmc

13 years ago[g3dvl] fully implement paletted subpictures
Christian König [Sat, 26 Mar 2011 11:36:01 +0000 (12:36 +0100)]
[g3dvl] fully implement paletted subpictures

13 years ago[g3dvl] correct subpicture stride in upload
Christian König [Sat, 26 Mar 2011 10:53:27 +0000 (11:53 +0100)]
[g3dvl] correct subpicture stride in upload

13 years ago[g3dvl] start implementing palettes for subpictures
Christian König [Sat, 26 Mar 2011 10:46:07 +0000 (11:46 +0100)]
[g3dvl] start implementing palettes for subpictures

13 years ago[g3dvl] get sampler swizzle right for subpictures
Christian König [Sat, 26 Mar 2011 09:58:38 +0000 (10:58 +0100)]
[g3dvl] get sampler swizzle right for subpictures

This should make ai44 work correctly.

13 years ago[g3dvl] add blend state to compositor
Christian König [Sat, 26 Mar 2011 01:03:16 +0000 (02:03 +0100)]
[g3dvl] add blend state to compositor

This seems to get at least mplayer working

13 years ago[g3dvl] correct layer size calculation
Christian König [Sat, 26 Mar 2011 00:26:52 +0000 (01:26 +0100)]
[g3dvl] correct layer size calculation

13 years ago[g3dvl] use quads instead of triangles for the compositor
Christian König [Sat, 26 Mar 2011 00:01:18 +0000 (01:01 +0100)]
[g3dvl] use quads instead of triangles for the compositor

13 years ago[g3dvl] the sampler textview map is no longer needed
Christian König [Fri, 25 Mar 2011 23:30:22 +0000 (00:30 +0100)]
[g3dvl] the sampler textview map is no longer needed

13 years ago[g3dvl] throw out all unused parts of the interface
Christian König [Fri, 25 Mar 2011 23:20:16 +0000 (00:20 +0100)]
[g3dvl] throw out all unused parts of the interface

13 years ago[g3dvl] rework supicture handling
Christian König [Fri, 25 Mar 2011 22:38:50 +0000 (23:38 +0100)]
[g3dvl] rework supicture handling

This gets ia44 and ai44 at least partial working

13 years ago[g3dvl] start implementing AI44 and IA44 subpicture
Christian König [Fri, 25 Mar 2011 20:10:56 +0000 (21:10 +0100)]
[g3dvl] start implementing AI44 and IA44 subpicture

13 years ago[g3dvl] make ref_surface handling more sane
Christian König [Fri, 25 Mar 2011 18:32:22 +0000 (19:32 +0100)]
[g3dvl] make ref_surface handling more sane

13 years ago[g3dvl] move sampler views for reference frames into context
Christian König [Thu, 24 Mar 2011 20:24:58 +0000 (21:24 +0100)]
[g3dvl] move sampler views for reference frames into context

13 years ago[g3dvl] make mapping and flushing of buffers a public interface
Christian König [Thu, 24 Mar 2011 19:33:32 +0000 (20:33 +0100)]
[g3dvl] make mapping and flushing of buffers a public interface

13 years ago[g3dvl] fix configure.ac for r600 video targets
Christian König [Tue, 22 Mar 2011 20:58:28 +0000 (21:58 +0100)]
[g3dvl] fix configure.ac for r600 video targets

13 years ago[g3dvl] buffers must be aligned to macroblock size
Christian König [Tue, 22 Mar 2011 20:52:06 +0000 (21:52 +0100)]
[g3dvl] buffers must be aligned to macroblock size

13 years ago[g3dvl] make video buffer a public available interface
Christian König [Tue, 22 Mar 2011 18:58:21 +0000 (19:58 +0100)]
[g3dvl] make video buffer a public available interface

13 years ago[g3dvl] handle different mc types more similary
Christian König [Sun, 20 Mar 2011 21:50:09 +0000 (22:50 +0100)]
[g3dvl] handle different mc types more similary

13 years ago[g3dvl] simplify motion vector calculation
Christian König [Sun, 20 Mar 2011 21:14:49 +0000 (22:14 +0100)]
[g3dvl] simplify motion vector calculation

13 years ago[g3dvl] rename motion vector fields
Christian König [Sun, 20 Mar 2011 20:34:38 +0000 (21:34 +0100)]
[g3dvl] rename motion vector fields

13 years ago[g3dvl] correctly implement non power of two buffers
Christian König [Sun, 20 Mar 2011 18:45:06 +0000 (19:45 +0100)]
[g3dvl] correctly implement non power of two buffers

13 years ago[g3dvl] cleanup idct init
Christian König [Sun, 20 Mar 2011 18:29:47 +0000 (19:29 +0100)]
[g3dvl] cleanup idct init

13 years ago[g3dvl] fix power_of_two buffer with/height handling
Christian König [Sun, 20 Mar 2011 18:00:50 +0000 (19:00 +0100)]
[g3dvl] fix power_of_two buffer with/height handling

13 years ago[g3dvl] merge fixes
Christian König [Sat, 19 Mar 2011 11:26:17 +0000 (12:26 +0100)]
[g3dvl] merge fixes

13 years agor600g: revert some asm optimisations
Christian König [Sat, 19 Mar 2011 10:40:22 +0000 (11:40 +0100)]
r600g: revert some asm optimisations

They didn't have the desired effect and are still quite buggy

13 years agoMerge remote branch 'origin/master' into pipe-video
Christian König [Sat, 19 Mar 2011 00:02:40 +0000 (01:02 +0100)]
Merge remote branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_asm.c
src/gallium/tests/unit/SConscript

13 years agovdpau: add vdpau-r600 target
Christian König [Fri, 18 Mar 2011 20:44:47 +0000 (21:44 +0100)]
vdpau: add vdpau-r600 target

13 years agovdpau: fix formating and idention of surface.c
Christian König [Fri, 18 Mar 2011 20:12:08 +0000 (21:12 +0100)]
vdpau: fix formating and idention of surface.c

13 years agoget softpipe winsys to compile again
Christian König [Fri, 18 Mar 2011 18:34:02 +0000 (19:34 +0100)]
get softpipe winsys to compile again

13 years agovdpau: make indention and formating more sane
Christian König [Fri, 18 Mar 2011 00:06:41 +0000 (01:06 +0100)]
vdpau: make indention and formating more sane

13 years agovdpau: merge fixes for vdpau state tracker
Christian König [Thu, 17 Mar 2011 23:26:34 +0000 (00:26 +0100)]
vdpau: merge fixes for vdpau state tracker

13 years agofix chroma swizzle
Christian König [Thu, 17 Mar 2011 21:18:05 +0000 (22:18 +0100)]
fix chroma swizzle

13 years agomove empty block mask into mpeg12 context
Christian König [Thu, 17 Mar 2011 19:13:51 +0000 (20:13 +0100)]
move empty block mask into mpeg12 context

13 years agonouveau: Fix serious compiler warnings
Johannes Obermayr [Fri, 18 Mar 2011 18:10:07 +0000 (12:10 -0600)]
nouveau: Fix serious compiler warnings

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=35025

Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agomesa: minor improvements in glTexEnvfv()
Brian Paul [Fri, 18 Mar 2011 02:31:58 +0000 (20:31 -0600)]
mesa: minor improvements in glTexEnvfv()

13 years agomesa: only report up to 50 _mesa_problem() calls
Brian Paul [Fri, 18 Mar 2011 02:31:58 +0000 (20:31 -0600)]
mesa: only report up to 50 _mesa_problem() calls

http://bugs.freedesktop.org/show_bug.cgi?id=35200 reports a disk
partition getting filled because of warning messages.  Stop emitting
after 50.

13 years agoswrast: report data type in error message
Brian Paul [Fri, 18 Mar 2011 02:31:58 +0000 (20:31 -0600)]
swrast: report data type in error message

13 years agomesa: Remove the CompileShader driver hook; it's just a no-op.
Kenneth Graunke [Sat, 26 Feb 2011 08:42:24 +0000 (00:42 -0800)]
mesa: Remove the CompileShader driver hook; it's just a no-op.

13 years agomesa: use _mesa_get_current_tex_unit() helper in BindTexture()
Brian Paul [Thu, 17 Mar 2011 03:13:31 +0000 (21:13 -0600)]
mesa: use _mesa_get_current_tex_unit() helper in BindTexture()

13 years agomesa: remove unneeded local var in BindTexture()
Brian Paul [Thu, 17 Mar 2011 03:13:31 +0000 (21:13 -0600)]
mesa: remove unneeded local var in BindTexture()

13 years agomesa: clean up the glBindTexture early out code a bit
Brian Paul [Thu, 17 Mar 2011 03:13:31 +0000 (21:13 -0600)]
mesa: clean up the glBindTexture early out code a bit

13 years ago[g3dvl] move mpeg12 context out of softpipe
Christian König [Wed, 16 Mar 2011 23:08:20 +0000 (00:08 +0100)]
[g3dvl] move mpeg12 context out of softpipe

13 years ago[g3dvl] cleanup and documentation
Christian König [Wed, 16 Mar 2011 22:09:52 +0000 (23:09 +0100)]
[g3dvl] cleanup and documentation

13 years agoi965: Rename brw_(IF|CONT)_gen6 functions to gen6_(IF|CONT).
Kenneth Graunke [Wed, 16 Mar 2011 07:00:09 +0000 (00:00 -0700)]
i965: Rename brw_(IF|CONT)_gen6 functions to gen6_(IF|CONT).

13 years agoautoconf: don't use CFLAGS for cpp files
Tobias Droste [Wed, 16 Mar 2011 17:45:29 +0000 (18:45 +0100)]
autoconf: don't use CFLAGS for cpp files

Signed-off-by: Tobias Droste <tdroste@gmx.de>
13 years agoi965: Rename BRW_DATAPORT_..._GEN6 messages to GEN6_... for consistency.
Kenneth Graunke [Wed, 16 Mar 2011 07:11:48 +0000 (00:11 -0700)]
i965: Rename BRW_DATAPORT_..._GEN6 messages to GEN6_... for consistency.

13 years agoi965: Rename BRW_SAMPLER_MESSAGE_..._GEN5 to GEN5_SAMPLER_MESSAGE.
Kenneth Graunke [Wed, 16 Mar 2011 07:06:59 +0000 (00:06 -0700)]
i965: Rename BRW_SAMPLER_MESSAGE_..._GEN5 to GEN5_SAMPLER_MESSAGE.

We already have lots of GEN6_* defines; this seems more consistent.

13 years agosvga: Leave any_user_vertex_buffers flag alone.
José Fonseca [Wed, 16 Mar 2011 15:46:21 +0000 (15:46 +0000)]
svga: Leave any_user_vertex_buffers flag alone.

It is pointless to change, now that we don't replace user vertex buffer
with uploaded copy, per commit 52e598d200108ab9cfc9c9d828bbebdc576e9703.

13 years agosvga: Hardcode SVGA_COMBINE_USERBUFFERS to 1.
José Fonseca [Wed, 16 Mar 2011 15:43:00 +0000 (15:43 +0000)]
svga: Hardcode SVGA_COMBINE_USERBUFFERS to 1.

The code no longer supports otherwise -- it relies on buffers being
uploaded via u_upload_mgr -- so make this clear.

Also, there's no need to flush after draws from user buffers, given all
user content should have been copied by then.

13 years agomesa: Sort extensions in extension string by year.
José Fonseca [Thu, 10 Mar 2011 14:39:08 +0000 (14:39 +0000)]
mesa: Sort extensions in extension string by year.

The years were obtained automatically by scraping the first year from
the spec text file.  They are approximate.

13 years agosvga: Use transfer information on buffer transfers.
José Fonseca [Wed, 16 Mar 2011 11:17:48 +0000 (11:17 +0000)]
svga: Use transfer information on buffer transfers.

Should prevent the assert failure

  svga_buffer_flush_mapped_range: Assertion `sbuf->map.writing' failed.

on nested transfers.

13 years agoglsl2: Silence unused added variable gcc warning.
José Fonseca [Wed, 16 Mar 2011 09:16:01 +0000 (09:16 +0000)]
glsl2: Silence unused added variable gcc warning.

13 years agomesa: Use typecast in BITFIELD64_BIT macro.
José Fonseca [Wed, 16 Mar 2011 09:15:30 +0000 (09:15 +0000)]
mesa: Use typecast in BITFIELD64_BIT macro.

Unsigned long is 32bit on several platforms (e.g., Windows), yielding
1UL << 32 to be zero.

Note that BITFIELD64_BIT result is often assigned to variables of type
GLbitfield, instead of GLbitfield64. That's probably wrong and should be
addressed in a later change.

13 years agomesa: use BITFIELD64_BIT() macro
Brian Paul [Tue, 15 Mar 2011 15:48:26 +0000 (09:48 -0600)]
mesa: use BITFIELD64_BIT() macro

13 years agost/mesa: use BITFIELD64_BIT() macro in a few more places
Brian Paul [Tue, 15 Mar 2011 15:48:08 +0000 (09:48 -0600)]
st/mesa: use BITFIELD64_BIT() macro in a few more places

13 years agoglsl: add cast to silence signed/unsigned comparison warning
Brian Paul [Tue, 15 Mar 2011 15:18:40 +0000 (09:18 -0600)]
glsl: add cast to silence signed/unsigned comparison warning

13 years agomesa: use 1UL for 64-bit unsigned constant for C++
Brian Paul [Tue, 15 Mar 2011 15:17:46 +0000 (09:17 -0600)]
mesa: use 1UL for 64-bit unsigned constant for C++

This fixes C++ warnings where BITFIELD64_BIT() is used.

13 years agoglsl: Only allow unsized array assignment in an initializer
Ian Romanick [Tue, 15 Mar 2011 23:33:27 +0000 (16:33 -0700)]
glsl: Only allow unsized array assignment in an initializer

It should have been a tip when the spec says "However, implicitly
sized arrays cannot be assigned to. Note, this is a rare case that
*initializers and assignments appear to have different semantics*."
(empahsis mine)

Fixes bugzilla #34367.

NOTE: This is a candidate for stable release branches.

13 years agoi915g: fix braino in the static state rework
Daniel Vetter [Tue, 15 Mar 2011 20:49:25 +0000 (21:49 +0100)]
i915g: fix braino in the static state rework

For mip-map level rendering, both draw offset and size tend to change ...

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoi915g: implement early z
Daniel Vetter [Mon, 14 Mar 2011 21:13:01 +0000 (22:13 +0100)]
i915g: implement early z

v2: Make it actually work.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoi915g: split up static state
Daniel Vetter [Tue, 15 Mar 2011 17:36:00 +0000 (18:36 +0100)]
i915g: split up static state

Early Z support is set in the DST_VARS command. Hence split up static
state emission to avoid reissuing to much on fragment shader changes,
especially the costly dst buffer relocations.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoi965: Fix alpha testing when there is no color buffer in the FBO.
Eric Anholt [Sat, 12 Mar 2011 01:39:49 +0000 (17:39 -0800)]
i965: Fix alpha testing when there is no color buffer in the FBO.

We were alpha testing against an unwritten value, resulting in garbage.
(part of) Bug #35073.

13 years agoi965: Do our lowering passes before the loop of optimization.
Eric Anholt [Fri, 11 Mar 2011 22:50:17 +0000 (14:50 -0800)]
i965: Do our lowering passes before the loop of optimization.

The optimization loop won't reinsert noise instructions or quadop
vectors, so we were traversing the tree for nothing.  Lowering vector
indexing was in the loop after do_common_optimization() to avoid the
work if it ended up that the index was actually constant, but that has
been called already in the core.

13 years agoglsl: Skip processing the first function's body in do_dead_functions().
Eric Anholt [Fri, 11 Mar 2011 22:08:48 +0000 (14:08 -0800)]
glsl: Skip processing the first function's body in do_dead_functions().

It can't call anything, so there's no point.

13 years agoglsl: Whitespace fixup in opt_dead_functions.cpp.
Eric Anholt [Fri, 11 Mar 2011 22:02:46 +0000 (14:02 -0800)]
glsl: Whitespace fixup in opt_dead_functions.cpp.

13 years agoglsl: Skip processing of expression trees in discard simplification.
Eric Anholt [Fri, 11 Mar 2011 21:23:13 +0000 (13:23 -0800)]
glsl: Skip processing of expression trees in discard simplification.

It only cares about "if", "loop", and "discard".

13 years agoglsl: Reduce processing of expression trees in do_structure_splitting.
Eric Anholt [Fri, 11 Mar 2011 21:17:03 +0000 (13:17 -0800)]
glsl: Reduce processing of expression trees in do_structure_splitting.

Most of the time we don't have a non-uniform struct variable in the
shader, so this cuts the time spent in do_structure_splitting during
glean texCombine by about 2/3.

13 years agoglsl: Skip processing expression trees in do_if_simplification().
Eric Anholt [Fri, 11 Mar 2011 21:08:26 +0000 (13:08 -0800)]
glsl: Skip processing expression trees in do_if_simplification().

Reduces time spent in this during glean texCombine by about 2/3.