mesa.git
13 years ago[g3dvl] softpipe now needs the llvm libs
Christian König [Mon, 16 May 2011 21:04:47 +0000 (23:04 +0200)]
[g3dvl] softpipe now needs the llvm libs

13 years ago[g3dvl] store the idct matrix as hex values
Christian König [Sun, 15 May 2011 22:26:44 +0000 (00:26 +0200)]
[g3dvl] store the idct matrix as hex values

Give the dct matrix a higher precision.

13 years agoMerge remote-tracking branch 'origin/master' into pipe-video
Christian König [Sun, 15 May 2011 17:26:53 +0000 (19:26 +0200)]
Merge remote-tracking branch 'origin/master' into pipe-video

13 years ago[g3dvl] enable gl_rasterization_rules for idct
Christian König [Sun, 15 May 2011 17:21:21 +0000 (19:21 +0200)]
[g3dvl] enable gl_rasterization_rules for idct

13 years ago[g3dvl] enable gl_rasterization_rules for zscan
Christian König [Sun, 15 May 2011 17:05:30 +0000 (19:05 +0200)]
[g3dvl] enable gl_rasterization_rules for zscan

13 years ago[g3dvl] store mvpos seperately from x,y cord
Christian König [Sun, 15 May 2011 13:27:38 +0000 (15:27 +0200)]
[g3dvl] store mvpos seperately from x,y cord

13 years ago[g3dvl] pre apply zscan to quant matrix
Christian König [Sun, 15 May 2011 12:53:13 +0000 (14:53 +0200)]
[g3dvl] pre apply zscan to quant matrix

13 years ago[g3dvl] no need for seperate intermediate buffers any more
Christian König [Sun, 15 May 2011 12:07:39 +0000 (14:07 +0200)]
[g3dvl] no need for seperate intermediate buffers any more

This should reduce the video memory footprint drastically.

13 years ago[g3dvl] move alignment of buffers to mb size into context
Christian König [Sun, 15 May 2011 11:08:38 +0000 (13:08 +0200)]
[g3dvl] move alignment of buffers to mb size into context

13 years agor600g: reduce flushes so only when texture and CB overlap.
Dave Airlie [Fri, 13 May 2011 00:41:16 +0000 (10:41 +1000)]
r600g: reduce flushes so only when texture and CB overlap.

We only need to do this when the texture and CB are using the
same memory area.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor300/compiler: Use ALU Result for IF conditionals
Tom Stellard [Sun, 15 May 2011 04:47:26 +0000 (21:47 -0700)]
r300/compiler: Use ALU Result for IF conditionals

This saves one instruction per IF.

13 years agor300g: HiZ fixes
Marek Olšák [Sat, 14 May 2011 05:47:37 +0000 (07:47 +0200)]
r300g: HiZ fixes

Nothing special, just changing conditions for when HiZ can be enabled and
when HiZ memory becomes invalid.

I was thinking about it again and realized it had not been quite right.

13 years agor300g: don't set other HyperZ states if depth and stencil tests are disabled
Marek Olšák [Sat, 14 May 2011 03:58:35 +0000 (05:58 +0200)]
r300g: don't set other HyperZ states if depth and stencil tests are disabled

Such as HiZ.

13 years agor300g: dynamically ask for and release Hyper-Z access
Marek Olšák [Sat, 7 May 2011 17:55:45 +0000 (19:55 +0200)]
r300g: dynamically ask for and release Hyper-Z access

We ask for Hyper-Z access when clearing a zbuffer.
We release it if no zbuffer clear has been done for 2 seconds.

13 years agor300g: fix conversion from int to boolean
Marek Olšák [Sun, 15 May 2011 00:10:44 +0000 (02:10 +0200)]
r300g: fix conversion from int to boolean

13 years agou_vbuf_mgr: fix max_index computation once again
Marek Olšák [Sat, 14 May 2011 17:25:55 +0000 (19:25 +0200)]
u_vbuf_mgr: fix max_index computation once again

See how I compute and use the 'unused' variable in the code.
It's crucial for getting max_index right.

Fixed with the help of apitrace.
(bisecting the problematic draw call manually was not fun though)

This should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=36268
https://bugs.freedesktop.org/show_bug.cgi?id=36609

13 years ago[g3dvl] fix fi_frame mb increment
Christian König [Sat, 14 May 2011 15:11:33 +0000 (17:11 +0200)]
[g3dvl] fix fi_frame mb increment

13 years agost/mesa: set correct baseInternalFormat for _mesa_texstore in DrawPixels
Marek Olšák [Fri, 13 May 2011 22:54:44 +0000 (00:54 +0200)]
st/mesa: set correct baseInternalFormat for _mesa_texstore in DrawPixels

GL_RGBA was always used for baseInternalFormat regardless of the chosen
texture internal format.

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

Reviewed-by: Brian Paul <brianp@vmware.com>
13 years agoi965: Use BRW_DATAPORT_READ_TARGET_DATA_CACHE instead of 0.
Kenneth Graunke [Fri, 13 May 2011 16:04:09 +0000 (09:04 -0700)]
i965: Use BRW_DATAPORT_READ_TARGET_DATA_CACHE instead of 0.

Using the #define'd constant is better than 0 with a comment.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@intel.com>
13 years agoi965: Rename dp_render_target struct to gen6_dp.
Kenneth Graunke [Fri, 13 May 2011 15:33:15 +0000 (08:33 -0700)]
i965: Rename dp_render_target struct to gen6_dp.

This is actually just the message descriptor for Gen6+ dataport access;
it has nothing to do with the render cache.  Access to the sampler cache
and constant cache also would use this struct; rename for clarity.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
13 years agoi965: Attempt to un-muddle Gen6 data port message target defines.
Kenneth Graunke [Fri, 13 May 2011 14:49:27 +0000 (07:49 -0700)]
i965: Attempt to un-muddle Gen6 data port message target defines.

These are documented on page 245 of IHD_OS_Vol4_Part2.pdf (the public
Sandybridge documentation/SEND instruction description).

Somebody had the bright idea to reuse gen4/5 defines labelled READ/WRITE
which just happened to be the same values as Render Cache/Sampler Cache.
It turns out that this field has nothing to do with READ/WRITE on
Sandybridge, but rather represents which data port to direct it to.

This was especially confusing in brw_set_dp_read_message, which
used "BRW_MESSAGE_TARGET_DATAPORT_WRITE."  In a read function.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
13 years agonvc0: prevent overlap between load address and destination regs
Christoph Bumiller [Fri, 13 May 2011 16:43:06 +0000 (18:43 +0200)]
nvc0: prevent overlap between load address and destination regs

For example, an indirect load like "ld b128 $r0q c0[$r0]" seems to
overwrite the address register before finishing the load, but only
if there are a lot of threads running.

Visible as displaced geoemtry in Unigine Heaven.

13 years agodocs: update relnotes-7.11
Marek Olšák [Fri, 13 May 2011 16:09:41 +0000 (18:09 +0200)]
docs: update relnotes-7.11

13 years agost/mesa: expose ARB_shader_texture_lod if SM3 is supported
Marek Olšák [Fri, 6 May 2011 19:59:23 +0000 (21:59 +0200)]
st/mesa: expose ARB_shader_texture_lod if SM3 is supported

Reviewed-by: Brian Paul <brianp@vmware.com>
13 years agoutil_logbase2 takes and returns unsigned, not int
Matt Turner [Mon, 9 May 2011 04:17:02 +0000 (00:17 -0400)]
util_logbase2 takes and returns unsigned, not int

Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agoRemove redundant util_unsigned_logbase2
Matt Turner [Mon, 9 May 2011 04:17:01 +0000 (00:17 -0400)]
Remove redundant util_unsigned_logbase2

util_logbase2 is exactly the same function.

Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agou_math.h: Remove redundant mingw32 ffs definition
Matt Turner [Mon, 9 May 2011 04:17:00 +0000 (00:17 -0400)]
u_math.h: Remove redundant mingw32 ffs definition

Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agost/egl: Implement EGL_WL_bind_wayland_display for x11,drm,wayland
Benjamin Franzke [Sat, 30 Apr 2011 09:18:23 +0000 (11:18 +0200)]
st/egl: Implement EGL_WL_bind_wayland_display for x11,drm,wayland

13 years agoegl_dri2: Discard similar configs
Benjamin Franzke [Thu, 12 May 2011 17:30:05 +0000 (19:30 +0200)]
egl_dri2: Discard similar configs

13 years agoegl_dri2: Make it possible to not compile in the X11 platform
Kristian Høgsberg [Wed, 11 May 2011 17:58:37 +0000 (13:58 -0400)]
egl_dri2: Make it possible to not compile in the X11 platform

13 years agonvfx: fill some PIPE_CAPs
Francesco Marella [Thu, 12 May 2011 11:27:09 +0000 (13:27 +0200)]
nvfx: fill some PIPE_CAPs

Signed-off-by: Francesco Marella <francesco.marella@gmail.com>
13 years agoi965: Fix incorrectly named data port define.
Kenneth Graunke [Fri, 13 May 2011 15:24:58 +0000 (08:24 -0700)]
i965: Fix incorrectly named data port define.

According to my documentation this is actually "Media Block Write" on
Gen4-5; there has never been a "DWord Block Write."

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agoi965: Fix typo in Gen6 "DWord Scattered Write" message define.
Kenneth Graunke [Fri, 13 May 2011 15:20:01 +0000 (08:20 -0700)]
i965: Fix typo in Gen6 "DWord Scattered Write" message define.

It's DWORD, not DWORLD.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agoi915g: Fix typos in print messages.
Vinson Lee [Fri, 13 May 2011 06:21:36 +0000 (23:21 -0700)]
i915g: Fix typos in print messages.

13 years agor600g: don't unmap if we haven't mapped
Dave Airlie [Fri, 13 May 2011 04:03:47 +0000 (14:03 +1000)]
r600g: don't unmap if we haven't mapped

should fix https://bugs.freedesktop.org/show_bug.cgi?id=37157

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agomesa: EXT_texture_sRGB_decode little fixup
Marek Olšák [Thu, 12 May 2011 23:15:53 +0000 (01:15 +0200)]
mesa: EXT_texture_sRGB_decode little fixup

It doesn't fix bug 37150 though.

13 years agor600g: use a local var to store pointer to which register we are working on
Dave Airlie [Thu, 12 May 2011 05:24:35 +0000 (15:24 +1000)]
r600g: use a local var to store pointer to which register we are working on

this just makes the code a little bit cleaner.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600g: make range/block act more like a page table
Dave Airlie [Thu, 12 May 2011 05:01:33 +0000 (15:01 +1000)]
r600g: make range/block act more like a page table

only allocate the blocks ptr in the range if we ever have one,
otherwise don't bother wasting the memory.

valgrind glxinfo
before:
==967==     in use at exit: 419,754 bytes in 706 blocks
==967==   total heap usage: 3,552 allocs, 2,846 frees, 3,550,131 bytes allocated

after:
==5227==     in use at exit: 419,754 bytes in 706 blocks
==5227==   total heap usage: 3,452 allocs, 2,746 frees, 3,140,531 bytes allocate

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600g: reduce r600_reg footprint
Dave Airlie [Thu, 12 May 2011 04:07:53 +0000 (14:07 +1000)]
r600g: reduce r600_reg footprint

This drops 6k of the text segment, a minor drop in the ocean, however
it also makes the code a lot cleaner and removes a lot of duplicated
information, hopefully making it more maintainable.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600g: reduce memory usage from range/block hash table.
Dave Airlie [Thu, 12 May 2011 03:20:02 +0000 (13:20 +1000)]
r600g: reduce memory usage from range/block hash table.

This table covered a large range unnecessarily, reduce the address
range covered, use the fact that the bottom two bits aren't significant,
and remove unused fields from the range struct. It also drops the hash_size/shift in context in favour of a define, which should make doing the math
a bit less CPU intensive.

valgrind glxinfo
Before:
==320==     in use at exit: 419,754 bytes in 706 blocks
==320==   total heap usage: 3,691 allocs, 2,985 frees, 7,272,467 bytes allocated

After:
==967==     in use at exit: 419,754 bytes in 706 blocks
==967==   total heap usage: 3,552 allocs, 2,846 frees, 3,550,131 bytes allocated

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600g: delay mapping until first map request. (v2)
Dave Airlie [Wed, 11 May 2011 03:14:16 +0000 (13:14 +1000)]
r600g: delay mapping until first map request. (v2)

Currently r600g always maps every bo, this is quite pointless as it wastes
VM and on 32-bit with wine running VM space is quite useful.

So with this patch we don't create the mappings until first use, without
tiling enabled this probably won't make a major difference on its own,
but with tiled staged uploads it should avoid keeping maps for most of the
textures unnecessarily.

v2: add bo data ptr check

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agoegl/dri2: Avoid unused static functions.
José Fonseca [Thu, 12 May 2011 14:24:26 +0000 (15:24 +0100)]
egl/dri2: Avoid unused static functions.

13 years agoegl/dri2: Prevent uninitialized variable dereference.
José Fonseca [Thu, 12 May 2011 14:23:48 +0000 (15:23 +0100)]
egl/dri2: Prevent uninitialized variable dereference.

13 years agoegl/dri2: Fix const pointer duplication, prevent unitialized variable dereference.
José Fonseca [Thu, 12 May 2011 14:23:02 +0000 (15:23 +0100)]
egl/dri2: Fix const pointer duplication, prevent unitialized variable dereference.

Based on zhigang gong <zhigang.gong@gmail.com>'s patch.

13 years agoegl: Fix int <-> ptr casts.
José Fonseca [Thu, 12 May 2011 14:12:16 +0000 (15:12 +0100)]
egl: Fix int <-> ptr casts.

Based on zhigang gong <zhigang.gong@gmail.com>'s patch.

13 years agoglu: Fix _GLUfuncptr typedef.
zhigang gong [Thu, 12 May 2011 10:36:59 +0000 (11:36 +0100)]
glu: Fix _GLUfuncptr typedef.

typedef void (GLAPIENTRYP _GLUfuncptr)(); causes the following warning:
function declaration isn't a prototype.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
13 years agomesa: Fix GetVertexAttrib* inside display lists.
José Fonseca [Thu, 12 May 2011 00:08:56 +0000 (01:08 +0100)]
mesa: Fix GetVertexAttrib* inside display lists.

GetVertexAttrib*{,ARB} is no longer aliased to the NV calls.

This fixes tracing yofrankie with apitrace, given it requires accurate
results from GetVertexAttribiv*.

NOTE: This is a candidate for the stable branches.

13 years agor300/compiler: Fix bug in rc_get_variables()
Tom Stellard [Wed, 11 May 2011 23:12:52 +0000 (16:12 -0700)]
r300/compiler: Fix bug in rc_get_variables()

Variables that share readers were not always being linked together.

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

13 years agor300/compiler: Limit instructions to 3 source selects
Tom Stellard [Sun, 24 Apr 2011 04:27:34 +0000 (21:27 -0700)]
r300/compiler: Limit instructions to 3 source selects

Some presubtract conversions were generating more than 3 source
selects.

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

Note: This is a candidate for the 7.10 branch.

13 years agor300/compiler: Add simple unit test framework
Tom Stellard [Sun, 8 May 2011 22:50:45 +0000 (15:50 -0700)]
r300/compiler: Add simple unit test framework

Plus three tests for rc_inst_can_use_presub()

13 years agor600g: fix flushes on rs780/rs880
Alex Deucher [Wed, 11 May 2011 12:09:35 +0000 (08:09 -0400)]
r600g: fix flushes on rs780/rs880

They need the same hack as rv670.

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

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 years agomesa: Don't append fog code for programs that don't output color.
José Fonseca [Wed, 11 May 2011 13:01:17 +0000 (14:01 +0100)]
mesa: Don't append fog code for programs that don't output color.

Fixes fdo 36919.

NOTE: This is a candidate for the stable branches.

It should be cherry-picked to the sames branches that
3aa21f93dc1329c6f956277f2746c2a0bdae5446 was.

13 years agosvga/drm: Implement svga_winsys_screen::get_hw_version.
José Fonseca [Tue, 10 May 2011 15:36:35 +0000 (16:36 +0100)]
svga/drm: Implement svga_winsys_screen::get_hw_version.

13 years agost/wgl: Remove buggy assertion.
José Fonseca [Mon, 9 May 2011 12:58:42 +0000 (13:58 +0100)]
st/wgl: Remove buggy assertion.

The assertion is wrong, now that state tracker can cope with a window with
zero width or height.

13 years agonv50: fix mistake in pipe caps for pre-NVA0 cards
Maxim Levitsky [Tue, 10 May 2011 08:16:54 +0000 (10:16 +0200)]
nv50: fix mistake in pipe caps for pre-NVA0 cards

Introduced by 531b12af35a832bcd8928a4919d76f8e9405cde0.

13 years agoir_to_mesa: Emit TXD instruction.
Kenneth Graunke [Tue, 1 Feb 2011 00:15:33 +0000 (16:15 -0800)]
ir_to_mesa: Emit TXD instruction.

Mesa already supports this because of NV_fragment_program.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Marek Olšák <maraeo@gmail.com>
13 years agoglsl: Add compiler support for ARB_shader_texture_lod.
Kenneth Graunke [Mon, 18 Oct 2010 22:35:10 +0000 (15:35 -0700)]
glsl: Add compiler support for ARB_shader_texture_lod.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Marek Olšák <maraeo@gmail.com>
13 years agomesa: Add ARB_shader_texture_lod to the extension list; off by default.
Kenneth Graunke [Tue, 19 Oct 2010 18:23:32 +0000 (11:23 -0700)]
mesa: Add ARB_shader_texture_lod to the extension list; off by default.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agonv50/nvc0: make transfers aware of PIPE_TRANSFER_MAP_DIRECTLY
Marcin Slusarz [Mon, 9 May 2011 18:12:38 +0000 (20:12 +0200)]
nv50/nvc0: make transfers aware of PIPE_TRANSFER_MAP_DIRECTLY

If state tracker asked us to map resource directly and we can't
do it (because of tiling), return NULL instead of doing full transfer
- state tracker should handle it and fallback to some other method
or repeat transfer without PIPE_TRANSFER_MAP_DIRECTLY.

It greatly improves performance of xorg state tracker on nv50+,
because its fallback (DFS/UTS) is much faster than full transfer.

13 years agor300/compiler: align memory allocations to 8-bytes
Matt Turner [Mon, 9 May 2011 04:17:05 +0000 (00:17 -0400)]
r300/compiler: align memory allocations to 8-bytes

Eliminates unaligned accesses on strict architectures. Spotted by Jay
Estabrook.

Signed-off-by: Matt Turner <mattst88@gmail.com>
NOTE: This is a candidate for the 7.10 branch.

13 years agor300g: unreference a zbuffer surface after decompression
Marek Olšák [Sat, 7 May 2011 21:31:37 +0000 (23:31 +0200)]
r300g: unreference a zbuffer surface after decompression

13 years agor300g: remove redundant state variable hyperz_locked
Marek Olšák [Sat, 7 May 2011 21:29:23 +0000 (23:29 +0200)]
r300g: remove redundant state variable hyperz_locked

13 years agomesa: document instructions ir_to_mesa emits
Marek Olšák [Mon, 9 May 2011 16:18:56 +0000 (18:18 +0200)]
mesa: document instructions ir_to_mesa emits

GLSL stopped using:
   BRA, EXP, LOG, LRP, NRM3, NRM4, XPD.

GLSL started using:
   KIL, SCS, SSG, SWZ.
(omg why SWZ? isn't proc_src_register flexible enough?)

GLSL doesn't use these opcodes some Radeons do support:
   ARR, DP2A, DST, LRP, XPD.

These opcodes are now unused:
   AND, NOT, NRM3, NRM4, OR, XOR.
(plus maybe the NV extensions which are unused by Gallium)

In addition to that, we don't use two-dimensional indirect addressing,
which the Mesa IR can do.

13 years agor300c: Fix up for register allocator rewrite.
Michel Dänzer [Mon, 9 May 2011 16:26:50 +0000 (18:26 +0200)]
r300c: Fix up for register allocator rewrite.

Was broken by commit fe622bac0c1b5b9f2a9fcf9f35b51232a06bea42 ('r300/compiler:
Rewrite register allocator').

13 years agor600g: anisotropic filtering support for evergreen hw
Jerome Glisse [Mon, 9 May 2011 16:09:51 +0000 (12:09 -0400)]
r600g: anisotropic filtering support for evergreen hw

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
13 years agor600g: add support for anisotropic filtering
Carl-Philip Haensch [Fri, 6 May 2011 20:48:08 +0000 (22:48 +0200)]
r600g: add support for anisotropic filtering

13 years agogallium: Factor out unknown endianness detection.
Michel Dänzer [Mon, 9 May 2011 10:29:47 +0000 (12:29 +0200)]
gallium: Factor out unknown endianness detection.

13 years agoDon't allow compilation if endianness isn't known
Matt Turner [Mon, 9 May 2011 04:17:04 +0000 (00:17 -0400)]
Don't allow compilation if endianness isn't known

PIPE_ARCH_UNKNOWN_ENDIAN is used no where else. All #else branches of
ifdef PIPE_ARCH_LITTLE assume big-endian. Not #error'ing out here
only serves to allow bad things to happen.

Signed-off-by: Matt Turner <mattst88@gmail.com>
13 years agop_config.h: Rely on glibc endianness definitions when available
Matt Turner [Mon, 9 May 2011 04:17:03 +0000 (00:17 -0400)]
p_config.h: Rely on glibc endianness definitions when available

Suggested by Julien Cristau.

Signed-off-by: Matt Turner <mattst88@gmail.com>
13 years agost/xorg: add some debugging messages to xorg_exa.c
Marcin Slusarz [Sun, 8 May 2011 22:37:20 +0000 (00:37 +0200)]
st/xorg: add some debugging messages to xorg_exa.c

13 years agost/xorg: remove DEBUG_PRINT macro and add exa_debug_printf
Marcin Slusarz [Sun, 8 May 2011 22:36:44 +0000 (00:36 +0200)]
st/xorg: remove DEBUG_PRINT macro and add exa_debug_printf

Localizes preprocessor usage to one place.

13 years agost/xorg: fix compilation of xorg_exa.c with DEBUG_PRINT set to 1
Marcin Slusarz [Sun, 8 May 2011 22:36:02 +0000 (00:36 +0200)]
st/xorg: fix compilation of xorg_exa.c with DEBUG_PRINT set to 1

13 years ago[g3dvl] move dct_type detection out of get_macroblock_modes
Christian König [Sun, 8 May 2011 20:28:33 +0000 (22:28 +0200)]
[g3dvl] move dct_type detection out of get_macroblock_modes

13 years agocell: fix unbalanced parenthesis
Nicolas Kaiser [Sun, 8 May 2011 13:41:10 +0000 (07:41 -0600)]
cell: fix unbalanced parenthesis

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years ago[g3dvl] fix field selection of mb without mc
Christian König [Sun, 8 May 2011 11:39:56 +0000 (13:39 +0200)]
[g3dvl] fix field selection of mb without mc

13 years ago[g3dvl] memcpy the DCT buffer instead of writing it directly
Christian König [Sat, 7 May 2011 16:09:31 +0000 (18:09 +0200)]
[g3dvl] memcpy the DCT buffer instead of writing it directly

It looks like texture buffers are not cached so this seems to be alot faster

13 years agovdpau: use multiple buffers to speed up rendering
Christian König [Sat, 7 May 2011 13:28:04 +0000 (15:28 +0200)]
vdpau: use multiple buffers to speed up rendering

13 years agovdpau: implement PresentationQueueSetBackgroundColor
Christian König [Sat, 7 May 2011 13:00:52 +0000 (15:00 +0200)]
vdpau: implement PresentationQueueSetBackgroundColor

13 years agovdpau: as long as we don't have a background picture we don't want an alpha channel
Christian König [Sat, 7 May 2011 12:51:06 +0000 (14:51 +0200)]
vdpau: as long as we don't have a background picture we don't want an alpha channel

13 years ago[g3dvl] rgba surfaces are clearing if the alpha channel is one
Christian König [Sat, 7 May 2011 12:49:58 +0000 (14:49 +0200)]
[g3dvl] rgba surfaces are clearing if the alpha channel is one

13 years ago[g3dvl] using reciprocals for size calc is sometimes not precise enough
Christian König [Sat, 7 May 2011 12:39:35 +0000 (14:39 +0200)]
[g3dvl] using reciprocals for size calc is sometimes not precise enough

13 years agoMerge remote-tracking branch 'origin/master' into pipe-video
Christian König [Sat, 7 May 2011 12:11:40 +0000 (14:11 +0200)]
Merge remote-tracking branch 'origin/master' into pipe-video

Conflicts:
src/gallium/drivers/r600/r600_state.c

13 years agor300/compiler: implement TXD and TXL opcodes
Marek Olšák [Fri, 6 May 2011 19:59:51 +0000 (21:59 +0200)]
r300/compiler: implement TXD and TXL opcodes

13 years agor300g: handle seamless_cube_map caps
Marek Olšák [Fri, 6 May 2011 19:57:52 +0000 (21:57 +0200)]
r300g: handle seamless_cube_map caps

13 years agoegl/wayland: Follow wl_resource_destroy changes
Benjamin Franzke [Fri, 6 May 2011 19:28:46 +0000 (21:28 +0200)]
egl/wayland: Follow wl_resource_destroy changes

13 years agonv50,nvc0: activate seamless cube map filtering
Christoph Bumiller [Fri, 6 May 2011 19:11:03 +0000 (21:11 +0200)]
nv50,nvc0: activate seamless cube map filtering

13 years agodocs: update relnotes-7.11
Marek Olšák [Mon, 2 May 2011 11:01:01 +0000 (13:01 +0200)]
docs: update relnotes-7.11

13 years agodocs: update GL3 status
Marek Olšák [Mon, 2 May 2011 15:45:48 +0000 (17:45 +0200)]
docs: update GL3 status

13 years agor600g: implement seamless_cube_map for evergreen
Marek Olšák [Mon, 2 May 2011 00:38:20 +0000 (02:38 +0200)]
r600g: implement seamless_cube_map for evergreen

The r600/r700 support will follow soon.

13 years agogallium: implement seamless cubemap extensions
Marek Olšák [Mon, 2 May 2011 00:37:46 +0000 (02:37 +0200)]
gallium: implement seamless cubemap extensions

Reviewed-by: Brian Paul <brianp@vmware.com>
13 years agomesa: handle TEXTURE_CUBE_MAP_SEAMLESS in SamplerParameter
Marek Olšák [Fri, 6 May 2011 16:32:06 +0000 (18:32 +0200)]
mesa: handle TEXTURE_CUBE_MAP_SEAMLESS in SamplerParameter

Reviewed-by: Brian Paul <brianp@vmware.com>
13 years agomesa: implement AMD_seamless_cubemap_per_texture
Marek Olšák [Tue, 3 May 2011 09:37:25 +0000 (11:37 +0200)]
mesa: implement AMD_seamless_cubemap_per_texture

13 years agor600g: avoid recursion in rv670 flush workaround
Alex Deucher [Fri, 6 May 2011 17:18:00 +0000 (13:18 -0400)]
r600g: avoid recursion in rv670 flush workaround

Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=36914

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 years agogallium/xorg st/nv50: add PIPE_BIND_CURSOR
Marcin Slusarz [Fri, 6 May 2011 17:06:20 +0000 (19:06 +0200)]
gallium/xorg st/nv50: add PIPE_BIND_CURSOR

We need to distinguish surfaces for mouse cursors from scanouts,
because nv50 hardware display engine ignores tiling flags.

13 years agoAdd pci id for FirePro 2270
Kostas Georgiou [Fri, 6 May 2011 16:44:24 +0000 (17:44 +0100)]
Add pci id for FirePro 2270

Signed-off-by: Kostas Georgiou <georgiou@opengamma.com>
13 years agoegl_dri2: add new radeon pci ids
Alex Deucher [Fri, 6 May 2011 17:02:24 +0000 (13:02 -0400)]
egl_dri2: add new radeon pci ids

There seriously needs to be a better way to do
this.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 years agomesa: add precision to M_PI constant
Matt Turner [Fri, 6 May 2011 17:01:13 +0000 (13:01 -0400)]
mesa: add precision to M_PI constant

Value found in my math.h header.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agomesa: replace ONE_DIV_LN2 constant with M_LOG2E
Matt Turner [Fri, 6 May 2011 17:01:12 +0000 (13:01 -0400)]
mesa: replace ONE_DIV_LN2 constant with M_LOG2E

1/ln(2) is equivalent to log2(e), so define it as such.

log2(e) = ln(e)/ln(2) = 1/ln(2)

Worst of all, the definitions for M_LOG2E and ONE_DIV_LN2
(right beside each other!) weren't the same.

Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agoegl: Add a cursor use bit to MESA_drm_image
Kristian Høgsberg [Fri, 6 May 2011 14:31:18 +0000 (10:31 -0400)]
egl: Add a cursor use bit to MESA_drm_image

13 years agoegl/wayland-drm: Generalize interface
Benjamin Franzke [Sat, 30 Apr 2011 09:17:01 +0000 (11:17 +0200)]
egl/wayland-drm: Generalize interface

Do not depend on _EGLDisplay and _EGLImage.