mesa.git
14 years agor300g: inline update_derived_shader_state
Marek Olšák [Sun, 2 May 2010 02:21:21 +0000 (04:21 +0200)]
r300g: inline update_derived_shader_state

14 years agor300g: fix segfault when resizing a DRI2 framebuffer
Marek Olšák [Sat, 1 May 2010 23:55:44 +0000 (01:55 +0200)]
r300g: fix segfault when resizing a DRI2 framebuffer

Resetting tiling flags might happen after a texture is destroyed...
Looking at the kernel sources, we don't actually need to reset the tiling
flags.

14 years agor300g: cache tiling flags to reduce the number of DRM calls
Marek Olšák [Sat, 1 May 2010 23:48:57 +0000 (01:48 +0200)]
r300g: cache tiling flags to reduce the number of DRM calls

14 years agomesa: s/sprintf/_mesa_snprintf/
Vinson Lee [Sun, 2 May 2010 08:03:59 +0000 (01:03 -0700)]
mesa: s/sprintf/_mesa_snprintf/

14 years agoi965g: s/sprintf/util_snprintf/
Vinson Lee [Sun, 2 May 2010 07:21:04 +0000 (00:21 -0700)]
i965g: s/sprintf/util_snprintf/

14 years agoglsl: s/sprintf/_mesa_snprintf/
Vinson Lee [Sun, 2 May 2010 05:01:28 +0000 (22:01 -0700)]
glsl: s/sprintf/_mesa_snprintf/

14 years agoglapi: s/strcpy/strncpy/
Vinson Lee [Sat, 1 May 2010 22:34:47 +0000 (15:34 -0700)]
glapi: s/strcpy/strncpy/

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Sat, 1 May 2010 22:12:45 +0000 (15:12 -0700)]
llvmpipe: Remove unused variable.

14 years agoprogs/tests: Remove meaningless const qualifiers.
Vinson Lee [Sat, 1 May 2010 22:07:45 +0000 (15:07 -0700)]
progs/tests: Remove meaningless const qualifiers.

14 years agoswrastg: Use trace
Jakob Bornecrantz [Sat, 1 May 2010 10:29:20 +0000 (11:29 +0100)]
swrastg: Use trace

14 years agoprogs/demos: Remove meaningless const qualifier in vao_demo.c.
Vinson Lee [Sat, 1 May 2010 08:28:06 +0000 (01:28 -0700)]
progs/demos: Remove meaningless const qualifier in vao_demo.c.

14 years agonv50: raise constant buffers size to maximum
Christoph Bumiller [Fri, 30 Apr 2010 20:57:23 +0000 (22:57 +0200)]
nv50: raise constant buffers size to maximum

Removed the param heaps, haven't been using them for a long
time now.

14 years agonv50: relax restriction on surface_copy format equality a bit
Christoph Bumiller [Thu, 29 Apr 2010 21:15:05 +0000 (23:15 +0200)]
nv50: relax restriction on surface_copy format equality a bit

14 years agonv50: don't segfault on OPCODE_END for empty programs
Christoph Bumiller [Thu, 29 Apr 2010 20:48:00 +0000 (22:48 +0200)]
nv50: don't segfault on OPCODE_END for empty programs

14 years agollvmpipe: fix out-of-bounds texture sampling
Brian Paul [Fri, 30 Apr 2010 19:54:31 +0000 (13:54 -0600)]
llvmpipe: fix out-of-bounds texture sampling

If we're using a wrap mode in which border color sampling is possible
it means that texcoords may be outside of the texture image bounds.
Fetching the texel may result in a segfault.

Use the 'use_border' variable to catch such texcoords and replace
the texel offset with zero (which will be in bounds).

Fixes segfault in Lightsmark demo, fd.o bug 27877.

14 years agollvmpipe: added lp_build_sample_nop() for debugging
Brian Paul [Fri, 30 Apr 2010 19:53:54 +0000 (13:53 -0600)]
llvmpipe: added lp_build_sample_nop() for debugging

14 years agosvga: Fix index offset
Jakob Bornecrantz [Wed, 21 Apr 2010 00:13:36 +0000 (01:13 +0100)]
svga: Fix index offset

14 years agost/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures
Brian Paul [Thu, 29 Apr 2010 21:32:36 +0000 (15:32 -0600)]
st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

Previously, when we created a gallium texture for a corresponding Mesa
texture we'd only allocate space for mipmap levels >= BaseLevel.

This patch undoes that mechanism.  This fixes a render-to-texture bug
when rendering to level 0 when BaseLevel=1.

Also, it makes sense to allocate the whole texture object memory when
BaseLevel > 0 since a common use of GL_TEXTURE_BASE_LEVEL is to
progressively load/render mipmaps.  Eventually, the app almost always
fills in the level=0 mipmap image.

Finally, the texture image code is bit easier to understand now.

14 years agodraw: Fix memory leaks in llvm code.
José Fonseca [Fri, 30 Apr 2010 18:00:58 +0000 (19:00 +0100)]
draw: Fix memory leaks in llvm code.

14 years agox86-64: Make assembly routines .hidden like on x86
Adam Jackson [Fri, 30 Apr 2010 18:09:57 +0000 (14:09 -0400)]
x86-64: Make assembly routines .hidden like on x86

14 years agosvga: Init surface functions
Jakob Bornecrantz [Tue, 20 Apr 2010 22:04:30 +0000 (23:04 +0100)]
svga: Init surface functions

14 years agoutil: Add missing break statement in u_caps.c
Jakob Bornecrantz [Fri, 30 Apr 2010 13:46:18 +0000 (14:46 +0100)]
util: Add missing break statement in u_caps.c

Thanks Vinson.

14 years agost/mesa: remove unused/disabled code
Brian Paul [Thu, 29 Apr 2010 21:49:54 +0000 (15:49 -0600)]
st/mesa: remove unused/disabled code

14 years agomesa: added _mesa_print_framebuffer() for debugging
Brian Paul [Thu, 29 Apr 2010 18:26:24 +0000 (12:26 -0600)]
mesa: added _mesa_print_framebuffer() for debugging

14 years agoi965: Reject shaders with uninlined function calls instead of hanging.
Eric Anholt [Thu, 29 Apr 2010 20:35:56 +0000 (13:35 -0700)]
i965: Reject shaders with uninlined function calls instead of hanging.

Most of the failure from using uninlined function calls ends up being
just bad rendering, but nested function calls in the VS currently hang
the GPU, so reject them and explain why.

14 years agomesa: Don't overwrite a driver's shader infolog with generic failure message.
Eric Anholt [Thu, 29 Apr 2010 20:35:37 +0000 (13:35 -0700)]
mesa: Don't overwrite a driver's shader infolog with generic failure message.

14 years agoutil: Update caps after helpfull input
Jakob Bornecrantz [Thu, 29 Apr 2010 16:26:51 +0000 (17:26 +0100)]
util: Update caps after helpfull input

In no particular order:
* Make list const
* Add function comments
* Clearly state that demo lists are not complete
* Fix whitespace
* Use __FUNCTION__ instead of __func__
* Add unimplemented check which always fail

Thanks Brian and Keith.

14 years agoutil: Add small caps checker helper
Jakob Bornecrantz [Thu, 29 Apr 2010 15:20:14 +0000 (16:20 +0100)]
util: Add small caps checker helper

14 years agoutil: Format error format string as the rest of the pipe formats
Jakob Bornecrantz [Thu, 29 Apr 2010 15:58:42 +0000 (16:58 +0100)]
util: Format error format string as the rest of the pipe formats

14 years agosoftpipe & llvmpipe: Enable SM3 cap
Jakob Bornecrantz [Thu, 29 Apr 2010 15:18:43 +0000 (16:18 +0100)]
softpipe & llvmpipe: Enable SM3 cap

14 years agodraw llvm: stay in bounds even if fetch_count % 4 != 0
Zack Rusin [Wed, 28 Apr 2010 21:11:25 +0000 (17:11 -0400)]
draw llvm: stay in bounds even if fetch_count % 4 != 0

if fetch_count % 4 != 0 then on the last iteration we fetch garbage.
this patch makes sure we stay within bounds

14 years agocso: remove commented-out code, update function docs
Brian Paul [Thu, 29 Apr 2010 15:33:39 +0000 (09:33 -0600)]
cso: remove commented-out code, update function docs

14 years agogallivm: add some assertions in special-case sampler code
Brian Paul [Thu, 29 Apr 2010 15:13:47 +0000 (09:13 -0600)]
gallivm: add some assertions in special-case sampler code

14 years agoi965: Fix cube map layouts on Ironlake.
Eric Anholt [Thu, 29 Apr 2010 00:17:54 +0000 (17:17 -0700)]
i965: Fix cube map layouts on Ironlake.

We were doubling up the offsets for the mipmap levels for CPU access.
Instead of reimplementing i945_miptree_layout_2d with 6 cube images
separated by qpitch, share that function and provide the level offsets
later.

Fixes piglit cubemap and fbo-cubemap.

14 years agoi965: Implement VS MAX in a more obvious way.
Eric Anholt [Wed, 28 Apr 2010 19:47:51 +0000 (12:47 -0700)]
i965: Implement VS MAX in a more obvious way.

This should be functionally equivalent, with the possible exception of
NaN handling.

14 years agoi965: Use immediate float operands for some VS instructions.
Eric Anholt [Wed, 28 Apr 2010 19:39:39 +0000 (12:39 -0700)]
i965: Use immediate float operands for some VS instructions.

We could use this to reduce constant register pressure, but for now it
makes the resulting program assembly much more readable.

14 years agollvmpipe: fix texture/display target memory leak
Brian Paul [Thu, 29 Apr 2010 15:10:05 +0000 (09:10 -0600)]
llvmpipe: fix texture/display target memory leak

14 years agogallium/draw: Fix PPC compiler warning.
Michel Dänzer [Thu, 29 Apr 2010 08:05:09 +0000 (10:05 +0200)]
gallium/draw: Fix PPC compiler warning.

14 years agogallium/draw: Fix PPC build failure.
Michel Dänzer [Thu, 29 Apr 2010 08:02:08 +0000 (10:02 +0200)]
gallium/draw: Fix PPC build failure.

14 years agor300g: fix compiler error
Marek Olšák [Thu, 29 Apr 2010 05:32:56 +0000 (07:32 +0200)]
r300g: fix compiler error

Ouch.

14 years agor300g: use the enum for color swizzles in the rasterizer
Marek Olšák [Thu, 29 Apr 2010 05:18:37 +0000 (07:18 +0200)]
r300g: use the enum for color swizzles in the rasterizer

14 years agor300g: rasterizer debug logging
Marek Olšák [Thu, 29 Apr 2010 04:55:58 +0000 (06:55 +0200)]
r300g: rasterizer debug logging

14 years agor300g: fix tests/yuvrect and possibly even rendering to YUV textures
Marek Olšák [Thu, 29 Apr 2010 03:26:41 +0000 (05:26 +0200)]
r300g: fix tests/yuvrect and possibly even rendering to YUV textures

14 years agor300g: enable the RGBA16F renderbuffer too
Marek Olšák [Thu, 29 Apr 2010 03:07:23 +0000 (05:07 +0200)]
r300g: enable the RGBA16F renderbuffer too

14 years agor300g: enable float textures
Marek Olšák [Thu, 29 Apr 2010 03:00:17 +0000 (05:00 +0200)]
r300g: enable float textures

We still need to wait for state tracker support.

14 years agor300g: compose swizzles from texture formats and sampler views
Marek Olšák [Thu, 29 Apr 2010 02:32:25 +0000 (04:32 +0200)]
r300g: compose swizzles from texture formats and sampler views

14 years agor300g: init s3tc fetching functions
Marek Olšák [Thu, 29 Apr 2010 01:18:39 +0000 (03:18 +0200)]
r300g: init s3tc fetching functions

14 years agosvga: More don't recurse
Jakob Bornecrantz [Mon, 19 Apr 2010 19:10:57 +0000 (20:10 +0100)]
svga: More don't recurse

14 years agosvga: Translate svga reloc flags to pb flags
Jakob Bornecrantz [Mon, 19 Apr 2010 19:09:38 +0000 (20:09 +0100)]
svga: Translate svga reloc flags to pb flags

14 years agosvga: Don't recurse
Jakob Bornecrantz [Mon, 19 Apr 2010 18:12:49 +0000 (19:12 +0100)]
svga: Don't recurse

14 years agodraw: remove extra semicolons
Brian Paul [Wed, 28 Apr 2010 21:27:08 +0000 (15:27 -0600)]
draw: remove extra semicolons

14 years agollvmpipe: free vertex buffer memory in lp_setup_vbuf_destroy()
Brian Paul [Wed, 28 Apr 2010 21:23:03 +0000 (15:23 -0600)]
llvmpipe: free vertex buffer memory in lp_setup_vbuf_destroy()

14 years agollvmpipe: fix scene queue memory leak
Brian Paul [Wed, 28 Apr 2010 21:22:43 +0000 (15:22 -0600)]
llvmpipe: fix scene queue memory leak

14 years agollvmpipe: fix scene queue memory leak
Brian Paul [Wed, 28 Apr 2010 21:22:27 +0000 (15:22 -0600)]
llvmpipe: fix scene queue memory leak

14 years agollvmpipe: fix mem leak in llvmpipe_resource_destroy()
Brian Paul [Wed, 28 Apr 2010 21:21:56 +0000 (15:21 -0600)]
llvmpipe: fix mem leak in llvmpipe_resource_destroy()

14 years agollvmpipe: fix surface memory leak during tear-down
Brian Paul [Wed, 28 Apr 2010 21:14:58 +0000 (15:14 -0600)]
llvmpipe: fix surface memory leak during tear-down

14 years agollvmpipe: remove unused psize_slot field
Brian Paul [Wed, 28 Apr 2010 20:24:53 +0000 (14:24 -0600)]
llvmpipe: remove unused psize_slot field

14 years agollvmpipe: move/rename llvmpipe_init_surface_functions()
Brian Paul [Wed, 28 Apr 2010 20:22:28 +0000 (14:22 -0600)]
llvmpipe: move/rename llvmpipe_init_surface_functions()

14 years agollvmpipe: make rasterizer-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 20:19:15 +0000 (14:19 -0600)]
llvmpipe: make rasterizer-related functions static, clean-up initializations

14 years agollvmpipe: update comments, fix formatting
Brian Paul [Wed, 28 Apr 2010 20:15:38 +0000 (14:15 -0600)]
llvmpipe: update comments, fix formatting

14 years agollvmpipe: remove old prototypes, fix-up formatting
Brian Paul [Wed, 28 Apr 2010 20:14:37 +0000 (14:14 -0600)]
llvmpipe: remove old prototypes, fix-up formatting

14 years agollvmpipe: make shader-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 20:13:11 +0000 (14:13 -0600)]
llvmpipe: make shader-related functions static, clean-up initializations

14 years agollvmpipe: make clip-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 20:09:32 +0000 (14:09 -0600)]
llvmpipe: make clip-related functions static, clean-up initializations

14 years agollvmpipe: make draw-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 20:06:23 +0000 (14:06 -0600)]
llvmpipe: make draw-related functions static, clean-up initializations

14 years agollvmpipe: make vertex-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 20:04:24 +0000 (14:04 -0600)]
llvmpipe: make vertex-related functions static, clean-up initializations

14 years agollvmpipe: make blend-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 20:01:04 +0000 (14:01 -0600)]
llvmpipe: make blend-related functions static, clean-up initializations

14 years agollvmpipe: make sampler-related functions static, clean-up initializations
Brian Paul [Wed, 28 Apr 2010 19:57:03 +0000 (13:57 -0600)]
llvmpipe: make sampler-related functions static, clean-up initializations

14 years agollvmpipe: remove some unneeded shader structure fields
Brian Paul [Wed, 28 Apr 2010 19:39:55 +0000 (13:39 -0600)]
llvmpipe: remove some unneeded shader structure fields

14 years agollvmpipe: dump shaders if LP_DEBUG=tgsi
Brian Paul [Wed, 28 Apr 2010 19:18:51 +0000 (13:18 -0600)]
llvmpipe: dump shaders if LP_DEBUG=tgsi

14 years agodraw: use a cast wrapper
Brian Paul [Wed, 28 Apr 2010 17:57:09 +0000 (11:57 -0600)]
draw: use a cast wrapper

14 years agodraw: put 'create' in the vs varient create function names
Brian Paul [Wed, 28 Apr 2010 17:54:44 +0000 (11:54 -0600)]
draw: put 'create' in the vs varient create function names

14 years agoradeong: fix scons build
Joakim Sindholt [Wed, 28 Apr 2010 19:09:30 +0000 (21:09 +0200)]
radeong: fix scons build

14 years agodraw: add missing function parameter
Brian Paul [Wed, 28 Apr 2010 17:43:54 +0000 (11:43 -0600)]
draw: add missing function parameter

14 years agosoftpipe: consolidate tex image offset code
Brian Paul [Wed, 28 Apr 2010 17:37:51 +0000 (11:37 -0600)]
softpipe: consolidate tex image offset code

14 years agollvmpipe: remove unused write_depth
Brian Paul [Tue, 27 Apr 2010 19:10:56 +0000 (13:10 -0600)]
llvmpipe: remove unused write_depth

14 years agost/mesa: move/improve Mesa GPU program debugging
Brian Paul [Wed, 28 Apr 2010 16:24:54 +0000 (10:24 -0600)]
st/mesa: move/improve Mesa GPU program debugging

Print the program (plus its parameters) before calling
st_translate_mesa_program() in case we die in that function.

14 years agost/mesa: add missing debug entry for DEBUG_CONSTANTS
Brian Paul [Wed, 28 Apr 2010 16:23:47 +0000 (10:23 -0600)]
st/mesa: add missing debug entry for DEBUG_CONSTANTS

14 years agoMerge branch '7.8'
Brian Paul [Wed, 28 Apr 2010 16:10:51 +0000 (10:10 -0600)]
Merge branch '7.8'

Conflicts:

src/mesa/state_tracker/st_gen_mipmap.c

14 years agosoftpipe: use consistant names for local vars
Brian Paul [Wed, 28 Apr 2010 15:34:12 +0000 (09:34 -0600)]
softpipe: use consistant names for local vars

14 years agoprogs/demos: added code to test compressed mipmap generation (disabled)
Brian Paul [Wed, 28 Apr 2010 15:02:09 +0000 (09:02 -0600)]
progs/demos: added code to test compressed mipmap generation (disabled)

14 years agogallium: remove trailing comma
Brian Paul [Tue, 27 Apr 2010 22:42:13 +0000 (16:42 -0600)]
gallium: remove trailing comma

14 years agogallium/util: convert //-style comments
Brian Paul [Tue, 27 Apr 2010 22:41:53 +0000 (16:41 -0600)]
gallium/util: convert //-style comments

14 years agogallium/util: convert //-style comments
Brian Paul [Tue, 27 Apr 2010 22:41:36 +0000 (16:41 -0600)]
gallium/util: convert //-style comments

14 years agost/mesa: fix incorrect RowStride computation
Brian Paul [Wed, 28 Apr 2010 16:06:05 +0000 (10:06 -0600)]
st/mesa: fix incorrect RowStride computation

Fixes incorrect stride when getting a compressed tex image.

14 years agost/mesa: fill in stImage->level in st_generate_mipmap()
Brian Paul [Wed, 28 Apr 2010 16:05:00 +0000 (10:05 -0600)]
st/mesa: fill in stImage->level in st_generate_mipmap()

Before, this field was always zero for all the new mipmap levels.
Fixes problems with glGetTexImage() from a generated mipmap.

14 years agoMerge branch '7.8'
Jakob Bornecrantz [Wed, 28 Apr 2010 15:27:51 +0000 (16:27 +0100)]
Merge branch '7.8'

14 years agoglx: Fix build
Jakob Bornecrantz [Wed, 28 Apr 2010 15:19:41 +0000 (16:19 +0100)]
glx: Fix build

14 years agoglx: Fix build
Jakob Bornecrantz [Wed, 28 Apr 2010 15:19:41 +0000 (16:19 +0100)]
glx: Fix build

14 years agoconfigure.ac: Print some llvm info
Jakob Bornecrantz [Wed, 28 Apr 2010 12:38:58 +0000 (13:38 +0100)]
configure.ac: Print some llvm info

14 years agoegl: dri2 driver error output
Micah Fedke [Wed, 28 Apr 2010 13:25:58 +0000 (07:25 -0600)]
egl: dri2 driver error output

This patch amends the error output string for the case where the
dri2 egl driver could not open the dri dev node.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agoMerge branch '7.8'
Brian Paul [Wed, 28 Apr 2010 13:21:25 +0000 (07:21 -0600)]
Merge branch '7.8'

Conflicts:

src/glx/dri2_glx.c
src/glx/glx_pbuffer.c

14 years agollvmpipe: Remove unnecessary header.
Vinson Lee [Wed, 28 Apr 2010 07:14:39 +0000 (00:14 -0700)]
llvmpipe: Remove unnecessary header.

14 years agoDisable scissor when begining meta operations
Pierre Willenbrock [Tue, 27 Apr 2010 21:16:49 +0000 (23:16 +0200)]
Disable scissor when begining meta operations

Signed-off-by: Eric Anholt <eric@anholt.net>
14 years agoDon't set srcLevel on GL_TEXTURE_RECTANGLE_ARB targets
Pierre Willenbrock [Tue, 27 Apr 2010 21:16:48 +0000 (23:16 +0200)]
Don't set srcLevel on GL_TEXTURE_RECTANGLE_ARB targets

Signed-off-by: Eric Anholt <eric@anholt.net>
14 years agoFill the padding between entrys in the sampler key
Pierre Willenbrock [Tue, 27 Apr 2010 21:16:47 +0000 (23:16 +0200)]
Fill the padding between entrys in the sampler key

This struct is used to generate a hash, ignoring the entry boundaries.

Signed-off-by: Eric Anholt <eric@anholt.net>
14 years agoInitialize have_back.
Pierre Willenbrock [Tue, 27 Apr 2010 21:16:46 +0000 (23:16 +0200)]
Initialize have_back.

There is a user somewhere that tests it before its initial set.

Signed-off-by: Eric Anholt <eric@anholt.net>
14 years agoi915: Add debugging for just prorgam compile under INTEL_DEBUG=wm
Eric Anholt [Mon, 26 Apr 2010 16:18:23 +0000 (09:18 -0700)]
i915: Add debugging for just prorgam compile under INTEL_DEBUG=wm

14 years agoi915: Provide counts in the error messages for program limits.
Eric Anholt [Mon, 26 Apr 2010 16:04:16 +0000 (09:04 -0700)]
i915: Provide counts in the error messages for program limits.

14 years agoosmesa: update SRC_DIRS to fix build
Brian Paul [Tue, 27 Apr 2010 23:06:17 +0000 (17:06 -0600)]
osmesa: update SRC_DIRS to fix build

14 years agoosdemos: replace assertion with error handler
Brian Paul [Tue, 27 Apr 2010 23:05:56 +0000 (17:05 -0600)]
osdemos: replace assertion with error handler