mesa.git
13 years agoi915g: fix whitespace.
Stephane Marchesin [Wed, 3 Aug 2011 21:18:30 +0000 (23:18 +0200)]
i915g: fix whitespace.

13 years agoFix trailing whitespace.
Stephane Marchesin [Tue, 2 Aug 2011 17:40:26 +0000 (19:40 +0200)]
Fix trailing whitespace.

13 years agoi915g: Proper indentation of func parameters.
Stephane Marchesin [Tue, 2 Aug 2011 01:33:02 +0000 (03:33 +0200)]
i915g: Proper indentation of func parameters.

13 years agoi915g: Remove heuristic flushing.
Stephane Marchesin [Tue, 2 Aug 2011 01:31:21 +0000 (03:31 +0200)]
i915g: Remove heuristic flushing.

13 years agoconfigure.ac: Check for the respective libdrm_* when building gallium drivers
Emil Velikov [Thu, 14 Jul 2011 22:07:19 +0000 (23:07 +0100)]
configure.ac: Check for the respective libdrm_* when building gallium drivers

In a rare case of building gallium only, we need to
check if the required packages are available

libdrm_[intel|nouveau] - gallium[i915 i965|nouveau]

v2: r300g and r600g do not need libdrm_radeon

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
13 years agoxvmc-softpipe: remove LLVM_LIBS
Marek Olšák [Mon, 18 Jul 2011 21:20:53 +0000 (23:20 +0200)]
xvmc-softpipe: remove LLVM_LIBS

this is added conditionally in Makefile.xmvc

Spotted by Chris Rankin.

13 years agoi965: Rename CMD_VF_STATISTICS_(965|GM45) to include "3DSTATE".
Kenneth Graunke [Wed, 13 Jul 2011 09:32:43 +0000 (02:32 -0700)]
i965: Rename CMD_VF_STATISTICS_(965|GM45) to include "3DSTATE".

Including the full "3DSTATE_VF_STATISTICS" should make it easier to
cross-reference the code and documentation.

Also, move the 965/GM45 suffix to the beginning for consistency with
newer #defines.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agoi965: Rename CMD_VERTEX_(BUFFER|ELEMENT) to 3DSTATE_VERTEX_...S.
Kenneth Graunke [Wed, 13 Jul 2011 06:08:01 +0000 (23:08 -0700)]
i965: Rename CMD_VERTEX_(BUFFER|ELEMENT) to 3DSTATE_VERTEX_...S.

This makes our code use the same names as the documentation.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agoi965: Rename 3DSTATE_DRAWRECT_INFO_I965 to 3DSTATE_DRAWING_RECTANGLE.
Kenneth Graunke [Wed, 13 Jul 2011 09:23:30 +0000 (02:23 -0700)]
i965: Rename 3DSTATE_DRAWRECT_INFO_I965 to 3DSTATE_DRAWING_RECTANGLE.

The documentation uses 3DSTATE_DRAWING_RECTANGLE, and we already had it
defined in brw_defines.h; we were simply using an old #define from
intel_reg.h.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agoi915: Simplify intel_wpos_* with a helper function.
Eric Anholt [Wed, 13 Jul 2011 17:57:58 +0000 (10:57 -0700)]
i915: Simplify intel_wpos_* with a helper function.

13 years agoi915: Include gl_FragCoord.w data, not just xyz.
Eric Anholt [Wed, 13 Jul 2011 17:56:37 +0000 (10:56 -0700)]
i915: Include gl_FragCoord.w data, not just xyz.

Fixes piglit fragcoord_w test.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34323

13 years agoi915: Add support for HW rendering with no color draw buffer.
Eric Anholt [Tue, 12 Jul 2011 17:20:53 +0000 (10:20 -0700)]
i915: Add support for HW rendering with no color draw buffer.

This is useful for shadow map generation.  Tested with glsl-bug-22603,
which rendered the depth textures with fallbacks before.

Acked-by: Chad Versace <chad@chad-versace.us>
13 years agoi915: Fix incorrect depth scaling when enabling/disabling depth buffers.
Eric Anholt [Tue, 12 Jul 2011 20:47:21 +0000 (13:47 -0700)]
i915: Fix incorrect depth scaling when enabling/disabling depth buffers.

We were updating our new viewport using the old buffers' _WindowMap.m.
We can do less math and avoid using that deprecated matrix by just
folding the viewport calculation right in to the driver.

Fixes piglit fbo-depthtex.

13 years agoi915: Make stencil test for no-stencil handling match depth test.
Eric Anholt [Tue, 12 Jul 2011 17:57:51 +0000 (10:57 -0700)]
i915: Make stencil test for no-stencil handling match depth test.

i915_update_draw_buffers() already handles the fallback bit for
missing stencil region, so here we just need to handle whether the GL
thinks we have stencil data or not (and disable the test if so).

13 years agoi915: Disable the depth test whenever we don't have a depth buffer.
Eric Anholt [Tue, 12 Jul 2011 17:48:40 +0000 (10:48 -0700)]
i915: Disable the depth test whenever we don't have a depth buffer.

We were disabling it once at the moment we changed draw buffers, but
later enabling of depth test could turn it back on.  Fixes
fbo-nodepth-test.

Note that ctx->DrawBuffer has to be checked because during context
create we get called while it's still unset.  However, we know we'll
get an intel_draw_buffer() after that, so it's safe to make a silly
choice at this point.

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

13 years agoi915: Remove i965 paths from i915_update_drawbuffer() and i830's too.
Eric Anholt [Tue, 12 Jul 2011 17:03:41 +0000 (10:03 -0700)]
i915: Remove i965 paths from i915_update_drawbuffer() and i830's too.

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agoi965: Remove i915 paths from brw_update_draw_buffers().
Eric Anholt [Tue, 12 Jul 2011 16:52:04 +0000 (09:52 -0700)]
i965: Remove i915 paths from brw_update_draw_buffers().

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agoi965: Remove unused region calculations in brw_update_draw_buffer().
Eric Anholt [Tue, 12 Jul 2011 16:49:23 +0000 (09:49 -0700)]
i965: Remove unused region calculations in brw_update_draw_buffer().

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agoi965: Remove empty brw_set_draw_region.
Eric Anholt [Tue, 12 Jul 2011 16:48:08 +0000 (09:48 -0700)]
i965: Remove empty brw_set_draw_region.

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agoi965: Remove FALLBACK() from brw_update_draw_region().
Eric Anholt [Tue, 12 Jul 2011 16:47:38 +0000 (09:47 -0700)]
i965: Remove FALLBACK() from brw_update_draw_region().

The 965 driver doesn't use these for deciding on fallbacks.

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agointel: Move intel_draw_buffers() code into each driver.
Eric Anholt [Tue, 12 Jul 2011 16:43:22 +0000 (09:43 -0700)]
intel: Move intel_draw_buffers() code into each driver.

The illusion of shared code here wasn't fooling anybody.  It was
tempting to keep i830 and i915 still shared, but I think I actually
want to make them diverge shortly.

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agointel: Clarify the depthRb == stencilRb logic.
Eric Anholt [Tue, 12 Jul 2011 17:01:32 +0000 (10:01 -0700)]
intel: Clarify the depthRb == stencilRb logic.

Reviewed-by: Chad Versace <chad@chad-versace.us>
13 years agointel: Use the post-execution batchbuffer contents for dumping.
Eric Anholt [Tue, 12 Jul 2011 19:19:21 +0000 (12:19 -0700)]
intel: Use the post-execution batchbuffer contents for dumping.

We were missing out on all the relocation changes by dumping what we
subdata()ed in instead of what's there after the kernel finished with
it.

13 years agoglsl: Ensure that sampler declarations are always uniform or "in" parameters.
Paul Berry [Tue, 12 Jul 2011 19:03:02 +0000 (12:03 -0700)]
glsl: Ensure that sampler declarations are always uniform or "in" parameters.

This brings us into compliance with page 17 (page 22 of the PDF) of
the GLSL 1.20 spec:

    "[Sampler types] can only be declared as function parameters or
    uniform variables (see Section 4.3.5 "Uniform"). ... [Samplers]
    cannot be used as out or inout function parameters."

The spec isn't explicit about whether this rule applies to
structs/arrays containing shaders, but the intent seems to be to
ensure that it can always be determined at compile time which sampler
is being used in each texture lookup.  So to avoid creating a
loophole, the rule needs to apply to structs/arrays containing shaders
as well.

Fixes piglit tests spec/glsl-1.10/compiler/samplers/*.frag, and fixes
bug 38987.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38987
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
13 years agoglsl: Move type_contains_sampler() into glsl_type for later reuse.
Paul Berry [Mon, 11 Jul 2011 23:44:13 +0000 (16:44 -0700)]
glsl: Move type_contains_sampler() into glsl_type for later reuse.

The new location, as a member function of glsl_type, is more
consistent with queries like is_sampler(), is_boolean(), is_float(),
etc.  Placing the function inside glsl_type also makes it available to
any code that uses glsl_types.

13 years agor600g: fix corner case checks for the queries
Vadim Girlin [Sat, 16 Jul 2011 00:58:58 +0000 (04:58 +0400)]
r600g: fix corner case checks for the queries

13 years agor600g: Get rid of leftover PB_USAGE_* flags.
Henri Verbeet [Sun, 17 Jul 2011 22:42:27 +0000 (00:42 +0200)]
r600g: Get rid of leftover PB_USAGE_* flags.

These happen to work because their values are the same as the equivalent
PIPE_TRANSFER_* flags, but it's still misleading.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
13 years agolinker: Only over-ride built-ins when a prototype has been seen
Ian Romanick [Wed, 29 Jun 2011 21:52:10 +0000 (14:52 -0700)]
linker: Only over-ride built-ins when a prototype has been seen

The GLSL spec says:

    "If a built-in function is redeclared in a shader (i.e., a
    prototype is visible) before a call to it, then the linker will
    only attempt to resolve that call within the set of shaders that
    are linked with it."

This patch enforces this behavior.  When a function call is processed
a flag is set in the ir_call to indicate whether the previously seen
prototype is the built-in or not.  At link time a call will only bind
to an instance of a function that matches the "want built-in" setting
in the ir_call.

This has the odd side effect that first call to abs() in the shader
below will call the built-in and the second will not:

float foo(float x) { return abs(x); }
float abs(float x) { return -x; }
float bar(float x) { return abs(x); }

This seems insane, but it matches what the spec says.

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

13 years agodarwin: Include glxhash.c in libGL on darwin
Jeremy Huddleston [Sun, 17 Jul 2011 05:02:55 +0000 (22:02 -0700)]
darwin: Include glxhash.c in libGL on darwin

Fixes a build regression introduced by 4df137691ee29bb812347fa2c5f19095243ede22

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
13 years agoxvmc-nouveau: Resolve build
Emil Velikov [Sat, 16 Jul 2011 00:28:15 +0000 (01:28 +0100)]
xvmc-nouveau: Resolve build

The following resolves the build issues and missing symbols
Add "xvmc-nouveau/target.c" - missing symbol "driver_description"
Add "drivers/nvc0/libnvc0.a" - missing symbol "nvc0_screen_create"
Remove "drivers/softpipe/libsoftpipe.a" - unnessecary dependency
resolves build (when building without swrast)
Add "drivers/trace/libtrace.a" in Makefile

Note: With/without those patches xvmc-nouveau still segfaults
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
13 years agonv50: fix bogus error message about 3d surfaces
Christoph Bumiller [Sat, 16 Jul 2011 11:00:52 +0000 (13:00 +0200)]
nv50: fix bogus error message about 3d surfaces

13 years agogallivm: Rename createAsmInfo to createMCAsmInfo with llvm-3.0.
Vinson Lee [Sat, 16 Jul 2011 07:16:25 +0000 (00:16 -0700)]
gallivm: Rename createAsmInfo to createMCAsmInfo with llvm-3.0.

llvm-3.0svn r135219 renamed createAsmInfo to createMCAsmInfo in
include/llvm/Target/TargetRegistry.h.

13 years agoxmlconfig: remove an unused-but-set variable
Marek Olšák [Fri, 15 Jul 2011 19:09:02 +0000 (21:09 +0200)]
xmlconfig: remove an unused-but-set variable

I hate gcc 4.6 already.

13 years agor600g: print to stderr that a CS has been rejected by the kernel
Marek Olšák [Fri, 15 Jul 2011 19:02:22 +0000 (21:02 +0200)]
r600g: print to stderr that a CS has been rejected by the kernel

Just fixing the warning that r is unused.

13 years agoprog_optimize: fix a warning that a variable may be uninitialized
Marek Olšák [Fri, 15 Jul 2011 18:57:39 +0000 (20:57 +0200)]
prog_optimize: fix a warning that a variable may be uninitialized

13 years agor300/compiler: remove an unused-but-set variable and simplify the code
Marek Olšák [Fri, 15 Jul 2011 18:52:16 +0000 (20:52 +0200)]
r300/compiler: remove an unused-but-set variable and simplify the code

13 years agor300/compiler: fix a warning that a variable may be uninitialized
Marek Olšák [Fri, 15 Jul 2011 18:25:38 +0000 (20:25 +0200)]
r300/compiler: fix a warning that a variable may be uninitialized

13 years agost/mesa: remove unused-but-set variables in st_program.c
Marek Olšák [Fri, 15 Jul 2011 18:12:10 +0000 (20:12 +0200)]
st/mesa: remove unused-but-set variables in st_program.c

13 years agoswrast: remove an unused-but-set variable
Marek Olšák [Fri, 15 Jul 2011 18:06:01 +0000 (20:06 +0200)]
swrast: remove an unused-but-set variable

13 years agomesa: fix unused-but-set-variable warnings in dlist.c
Marek Olšák [Fri, 15 Jul 2011 18:04:46 +0000 (20:04 +0200)]
mesa: fix unused-but-set-variable warnings in dlist.c

13 years agor600g: fix queries and predication
Vadim Girlin [Fri, 15 Jul 2011 03:22:20 +0000 (07:22 +0400)]
r600g: fix queries and predication

Use all zpass data for predication instead of the last block only.
Use query buffer as a ring instead of reusing the same area
for each new BeginQuery. All query buffer offsets are in bytes
to simplify offsets math.

13 years agodrisw: Fix 24bpp software rendering, take 2
Marc Pignat [Tue, 28 Jun 2011 13:21:58 +0000 (15:21 +0200)]
drisw: Fix 24bpp software rendering, take 2

This patch add the support for 24bpp in the dri/swrast implementation.
See http://bugs.freedesktop.org/show_bug.cgi?id=23525

Signed-off-by: Marc Pignat <marc at pignat.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agog3dvl: no need for flushing inside the compositor any more
Christian König [Fri, 15 Jul 2011 15:54:06 +0000 (17:54 +0200)]
g3dvl: no need for flushing inside the compositor any more

Move that also inside the state tracker where needed.

13 years agog3dvl: correctly distinct dst area and clip area in the compositor
Christian König [Fri, 15 Jul 2011 15:20:55 +0000 (17:20 +0200)]
g3dvl: correctly distinct dst area and clip area in the compositor

Otherwise xine won't scale correctly.

13 years agor600c/g: add new NI pci ids
Alex Deucher [Fri, 15 Jul 2011 14:55:02 +0000 (10:55 -0400)]
r600c/g: add new NI pci ids

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
13 years agog3dvl: link r300 and r600 targets width libdrm instead of libdrm_radeon
Christian König [Fri, 15 Jul 2011 08:45:31 +0000 (10:45 +0200)]
g3dvl: link r300 and r600 targets width libdrm instead of libdrm_radeon

13 years agogallium/targets: link vdpau, va, and xvmc with LLVM libs when requested
Marek Olšák [Fri, 15 Jul 2011 01:24:40 +0000 (03:24 +0200)]
gallium/targets: link vdpau, va, and xvmc with LLVM libs when requested

Signed-off-by: Christian König <deathsimple@vodafone.de>
13 years agog3dvl: change picture parameter of decode_bitstream to general version
Christian König [Thu, 14 Jul 2011 17:37:02 +0000 (19:37 +0200)]
g3dvl: change picture parameter of decode_bitstream to general version

Using pipe_mpeg12_picture_desc was unintentional here.

13 years agog3dvl: Build softpipe when needed.
Younes Manton [Fri, 15 Jul 2011 05:30:21 +0000 (01:30 -0400)]
g3dvl: Build softpipe when needed.

13 years agog3dvl: Build the right winsys dependencies when needed.
Younes Manton [Thu, 14 Jul 2011 16:22:20 +0000 (12:22 -0400)]
g3dvl: Build the right winsys dependencies when needed.

13 years agomake: Fix program/lex.yy.c & friends generation.
José Fonseca [Thu, 14 Jul 2011 16:33:30 +0000 (17:33 +0100)]
make: Fix program/lex.yy.c & friends generation.

Not sure how this ever worked before, given that the Makefile is in
src/mesa, not src/mesa/program.

13 years agoSquashed commit of the following:
José Fonseca [Thu, 14 Jul 2011 16:28:52 +0000 (17:28 +0100)]
Squashed commit of the following:

commit 1856230d9fa61710cce3e152b8d88b1269611a73
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Tue Jul 12 23:41:27 2011 +0100

    make: Use better var names on packaging.

commit d1ae72d0bd14e820ecfe9f8f27b316f9566ceb0c
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Tue Jul 12 23:38:21 2011 +0100

    make: Apply several of Dan Nicholson's suggestions.

commit f27cf8743ac9cbf4c0ad66aff0cd3f97efde97e4
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Sat Jul 9 14:18:20 2011 +0100

    make: Put back the tar.bz2 creation rule.

    Removed by accident.

commit 34983337f9d7db984e9f0117808274106d262110
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Sat Jul 9 11:59:29 2011 +0100

    make: Determine tarballs contents via git ls-files.

    The wildcards were a mess:
    - lots of files for non Linux platforms missing
    - several files listed and archived twice

    Using git-ls-files ensures things are not loss when making the tarballs.

commit 34a28ccbf459ed5710aafba5e7149e8291cb808c
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Sat Jul 9 11:07:14 2011 +0100

    glut: Remove GLUT source.

    Most distros ship freeglut, and most people don't care one vs the other,
    and it hasn't been really maintained.

    So it is better to have Mesa GLUT be revisioned and built separately
    from Mesa.

commit 5c26a2c3c0c7e95ef853e19d12d75c4f80137e7d
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Sat Jul 9 10:31:02 2011 +0100

    Ignore the tarballs.

commit 26edecac589819f0d0efe2165ab748dbc4e53394
Author: José Fonseca <jose.r.fonseca@gmail.com>
Date:   Sat Jul 9 10:30:24 2011 +0100

    make: Create the Mesa-xxx-devel symlink automatically.

    Also actually remote the intermediate uncompressed tarballs.

13 years agoconfigure: allow C{,XX}FLAGS override
Marcin Baczyński [Wed, 13 Jul 2011 19:26:49 +0000 (21:26 +0200)]
configure: allow C{,XX}FLAGS override

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agoconfigure: fix gcc version check
Marcin Baczyński [Wed, 13 Jul 2011 19:26:50 +0000 (21:26 +0200)]
configure: fix gcc version check

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agovbo: minor optimisation in vbo_exec_DrawRangeElements
Dave Airlie [Wed, 22 Jun 2011 03:09:12 +0000 (13:09 +1000)]
vbo: minor optimisation in vbo_exec_DrawRangeElements

this moves getting the context into the debug in this function,

just spotted it trawling callgrind traces for other things.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agogallium: don't use enum bitfields in p_video_state.h
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
gallium: don't use enum bitfields in p_video_state.h

Silences many warnings about "type of bit-field ‘field_select’ is a
GCC extension".

Since the field sizes were 8 and 16 bits, just use basic types.

13 years agogallium: put video-related enums in separate header
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
gallium: put video-related enums in separate header

The forward references to video enum types in p_context.h causes
a massive number of compiler warnings (ISO C forbids forward references
to ‘enum’ types).

By putting the new video enums in a separate header that can be included
by p_context.h and p_screen.h we can avoid this.

Acked-by Christian König <deathsimple@vodafone.de>

13 years agoi915g: move declaration before code
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
i915g: move declaration before code

13 years agomesa: use inline function wrapper for _mesa_reference_texobj()
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
mesa: use inline function wrapper for _mesa_reference_texobj()

13 years agomesa: use inline function wrapper for _mesa_reference_renderbuffer()
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
mesa: use inline function wrapper for _mesa_reference_renderbuffer()

13 years agomesa: use inline function wrapper for _mesa_reference_framebuffer()
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
mesa: use inline function wrapper for _mesa_reference_framebuffer()

13 years agomain: use inline function wrapper for _mesa_reference_buffer_object()
Brian Paul [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
main: use inline function wrapper for _mesa_reference_buffer_object()

13 years agomesa: split _mesa_reference_program() into hot/cold paths.
Dave Airlie [Thu, 14 Jul 2011 14:09:21 +0000 (08:09 -0600)]
mesa: split _mesa_reference_program() into hot/cold paths.

inline the hotpath of the reference remaining the same. This shouldn't
penalise the slow path at all but improve the hot path so we don't have
to jump to the function.

It also moves some assert checks under an #ifndef NDEBUG.

Minor clean-ups added by Brian.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agog3dvl: check for existense of VA API header/libs
Christian König [Thu, 14 Jul 2011 12:09:25 +0000 (14:09 +0200)]
g3dvl: check for existense of VA API header/libs

Building the VA state tracker only works when the header/libs are available.
Also add a warning that the state tracker is currently undmaintained.

13 years agog3dvl: check for existense of VDPAU header/libs
Christian König [Thu, 14 Jul 2011 11:57:23 +0000 (13:57 +0200)]
g3dvl: check for existense of VDPAU header/libs

Building the VDPAU state tracker only works when the header/libs are available.

13 years agog3dvl: check for existense of XvMC header/libs
Christian König [Thu, 14 Jul 2011 10:42:17 +0000 (12:42 +0200)]
g3dvl: check for existense of XvMC header/libs

Building the XvMC state tracker only works when the header/libs are available.

13 years agonv50,nvc0: extensive surface format renaming to get consistency
Christoph Bumiller [Mon, 11 Jul 2011 09:33:11 +0000 (11:33 +0200)]
nv50,nvc0: extensive surface format renaming to get consistency

Now the component ordering is consistent and matches gallium again.

13 years agonv50,nvc0: add support for multi-sample resources
Christoph Bumiller [Mon, 11 Jul 2011 16:02:27 +0000 (18:02 +0200)]
nv50,nvc0: add support for multi-sample resources

13 years agonv50,nvc0: add correct storage type for Z32_FLOAT
Christoph Bumiller [Mon, 11 Jul 2011 20:49:57 +0000 (22:49 +0200)]
nv50,nvc0: add correct storage type for Z32_FLOAT

13 years agonv50,nvc0: unify nvc0_miptree and nv50_miptree structs
Christoph Bumiller [Thu, 14 Jul 2011 10:40:04 +0000 (12:40 +0200)]
nv50,nvc0: unify nvc0_miptree and nv50_miptree structs

Share some functions and restructure miptree creation a little.
Prepare for multi-sample resources.

13 years agonv50,nvc0: don't advertise unaligned texture format support
Christoph Bumiller [Mon, 11 Jul 2011 09:31:18 +0000 (11:31 +0200)]
nv50,nvc0: don't advertise unaligned texture format support

Because we don't support them.
For instance, R32G32B32 is not R32G32B32X32 as was assumed.

Add support for R8G8B8X8_UNORM instead of R8G8B8_UNORM surfaces.

13 years agog3dvl: Remove non-constant expression array initializers.
Vinson Lee [Thu, 14 Jul 2011 04:57:50 +0000 (21:57 -0700)]
g3dvl: Remove non-constant expression array initializers.

The array initializer must be a constant expression in MSVC.

13 years agoconfigure.ac: don't build gallium driver libs just to see if there are no errors
Marek Olšák [Mon, 27 Jun 2011 06:02:31 +0000 (08:02 +0200)]
configure.ac: don't build gallium driver libs just to see if there are no errors

I think the past are those times when the gallium interface was changed all
the time. Now it is not, so there is no reason to always compile the libs
if they are not needed.

13 years agogallium/targets: do not link every driver with libllvmpipe.a
Marek Olšák [Mon, 27 Jun 2011 06:25:09 +0000 (08:25 +0200)]
gallium/targets: do not link every driver with libllvmpipe.a

Only some targets need that, the others don't.

13 years agoRename swrastg_dri to swrast_dri
Marek Olšák [Mon, 27 Jun 2011 01:25:30 +0000 (03:25 +0200)]
Rename swrastg_dri to swrast_dri

I prefer it this way and it has been suggested earlier by others too.
Opinions?

13 years agosoftpipe: fix various warnings about int/float/double conversions, etc
Brian Paul [Thu, 14 Jul 2011 00:54:15 +0000 (18:54 -0600)]
softpipe: fix various warnings about int/float/double conversions, etc

13 years agog3dvl: Remove designated initializers.
Vinson Lee [Thu, 14 Jul 2011 00:00:26 +0000 (17:00 -0700)]
g3dvl: Remove designated initializers.

MSVC does not support designated initializers.

13 years agog3dvl: s/inline/INLINE/
Vinson Lee [Wed, 13 Jul 2011 22:59:08 +0000 (15:59 -0700)]
g3dvl: s/inline/INLINE/

The inline keyword is not available in MSVC C.

13 years agoutils: Add missing parentheses
Emil Velikov [Wed, 13 Jul 2011 22:19:37 +0000 (23:19 +0100)]
utils: Add missing parentheses

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agosoftpipe: Remove sp_video_context.c from SConscript.
Vinson Lee [Wed, 13 Jul 2011 21:50:12 +0000 (14:50 -0700)]
softpipe: Remove sp_video_context.c from SConscript.

sp_video_context.c was added to SConscript in commit
ed24e19070b7dff12670151b2d184f31c845ccae (pipe-video merge) but no file
of that name was added.

13 years ago[g3dvl] don't upload all quant buffer layers at once
Christian König [Wed, 13 Jul 2011 21:33:20 +0000 (23:33 +0200)]
[g3dvl] don't upload all quant buffer layers at once

There seems to be a bug in r600g when uploading more than one layer of a
3D resource at once with a hardware blit.

So just do them one at a time to workaround this.

13 years agoMerge branch 'pipe-video'
Christian König [Wed, 13 Jul 2011 20:56:06 +0000 (22:56 +0200)]
Merge branch 'pipe-video'

13 years agoi915g: don't try to check if a NULL buffer is busy.
Stéphane Marchesin [Wed, 13 Jul 2011 18:59:10 +0000 (11:59 -0700)]
i915g: don't try to check if a NULL buffer is busy.

13 years agoMerge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
Stéphane Marchesin [Wed, 13 Jul 2011 18:56:44 +0000 (11:56 -0700)]
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa

13 years agost/mesa: flush bitmap cache on query and conditional render boundaries
Vadim Girlin [Wed, 13 Jul 2011 05:01:04 +0000 (09:01 +0400)]
st/mesa: flush bitmap cache on query and conditional render boundaries

Bitmap caching shouldn't affect the results of the queries and
conditional render.

NOTE: This is a candidate for the 7.11 branch.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
13 years ago[g3dvl] remove some unneeded Makefiles
Christian König [Wed, 13 Jul 2011 17:37:28 +0000 (19:37 +0200)]
[g3dvl] remove some unneeded Makefiles

13 years agor600g: reenable hardware blits for STATIC and IMMUTABLE resources
Christian König [Wed, 13 Jul 2011 15:05:58 +0000 (17:05 +0200)]
r600g: reenable hardware blits for STATIC and IMMUTABLE resources

Getting the driver in sync with mainline.

13 years agor600g: prevent hardware blitting based on resource usage
Christian König [Wed, 13 Jul 2011 14:35:19 +0000 (16:35 +0200)]
r600g: prevent hardware blitting based on resource usage

It doesn't make much sense for STAGING and STREAM resources to be
hardware blitted into VRAM.

13 years ago[g3dvl] implement workaround for missing blender clamp control
Christian König [Wed, 13 Jul 2011 14:07:30 +0000 (16:07 +0200)]
[g3dvl] implement workaround for missing blender clamp control

It's about 20% slower, but should at least work with every hardware.

13 years agor600g: revert "set BLEND_CLAMP depending on clamp_fragment_color"
Christian König [Wed, 13 Jul 2011 13:54:28 +0000 (15:54 +0200)]
r600g: revert "set BLEND_CLAMP depending on clamp_fragment_color"

BLEND_CLAMP doesn't seems to be the right way to implement "ARB_color_buffer_float".

13 years ago[g3dvl] keep a pointer in idct buffer to idct object
Christian König [Wed, 13 Jul 2011 13:01:40 +0000 (15:01 +0200)]
[g3dvl] keep a pointer in idct buffer to idct object

So we always know to which idct object a buffer belongs

13 years agotargets/egl-static: fix a linking error
Chia-I Wu [Wed, 13 Jul 2011 07:25:46 +0000 (15:25 +0800)]
targets/egl-static: fix a linking error

rbug is always linked in and it needs libpthread.

13 years agoi915: Add support for gl_FragData[0] for output color.
Eric Anholt [Tue, 12 Jul 2011 22:31:39 +0000 (15:31 -0700)]
i915: Add support for gl_FragData[0] for output color.

We advertised ARB_draw_buffers, but either fell back to software when
using this output, or assertion failed.  Fixes glsl-fs-fragdata-1, and
failures in some webgl conformance tests.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39024
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34906

13 years agoi915g: fixup context desdruction
Daniel Vetter [Tue, 12 Jul 2011 22:09:36 +0000 (00:09 +0200)]
i915g: fixup context desdruction

Reported-by: Christopher Egert <cme3000@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
13 years agoi915: Fix NPOT compressed textures on 915.
Eric Anholt [Mon, 11 Jul 2011 23:50:06 +0000 (16:50 -0700)]
i915: Fix NPOT compressed textures on 915.

We were failing at rounding, misplacing the non-baselevels.  Fixes:
3DFX_texture_compression_FXT1/fbo-generate-mipmaps
ARB_texture_compression/fbo-generate-mipmaps
EXT_texture_compression_s3tc/fbo-generate-mipmaps

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
13 years agomesa: Fix assertion failure in X8_Z24/Z24_X8 texfetch.
Eric Anholt [Mon, 11 Jul 2011 23:49:44 +0000 (16:49 -0700)]
mesa: Fix assertion failure in X8_Z24/Z24_X8 texfetch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
13 years agoi915: Fix depth texturing since 86e62b2357447b7c97f434be4834f4b50aa0764d
Eric Anholt [Mon, 11 Jul 2011 18:42:00 +0000 (11:42 -0700)]
i915: Fix depth texturing since 86e62b2357447b7c97f434be4834f4b50aa0764d

The 965 driver already had the X8_Z24 case, but 915 was missing it.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
13 years agoi915: Use _mesa_get_format_name to describe translate_tex_format() fail.
Eric Anholt [Mon, 11 Jul 2011 18:34:56 +0000 (11:34 -0700)]
i915: Use _mesa_get_format_name to describe translate_tex_format() fail.

I don't want to go count up to what format number 29 is.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
13 years agoi915: Fix map/unmap mismatches from leaving INTEL_FALLBACK during TNL.
Eric Anholt [Mon, 11 Jul 2011 18:32:04 +0000 (11:32 -0700)]
i915: Fix map/unmap mismatches from leaving INTEL_FALLBACK during TNL.

The first rendering after context create didn't know of the color
buffer yet, triggering a sw fallback.  The intel_prepare_render() from
intelSpanRenderStart then found the buffer and turned off fallbacks,
but intelSpanRenderFinish was never called and things were left
mapped.  By checking buffers before making the call on whether to do
the fallback pipeline or not, we avoid the fallback change inside of
the rendering pipeline.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31561
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
13 years agointel: Use _mesa_tex_target_to_face() helper function instead of our own.
Eric Anholt [Mon, 11 Jul 2011 17:29:38 +0000 (10:29 -0700)]
intel: Use _mesa_tex_target_to_face() helper function instead of our own.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>