mesa.git
14 years agoMerge commit 'origin/master' into gallium-msaa
Roland Scheidegger [Fri, 30 Apr 2010 13:27:13 +0000 (15:27 +0200)]
Merge commit 'origin/master' into gallium-msaa

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 agogallium: fix glaring bugs in last commit
Roland Scheidegger [Tue, 27 Apr 2010 14:25:50 +0000 (16:25 +0200)]
gallium: fix glaring bugs in last commit

14 years agogallium: interface changes for multisampling
Roland Scheidegger [Mon, 26 Apr 2010 17:50:57 +0000 (19:50 +0200)]
gallium: interface changes for multisampling

add function to set sample mask, and state for alpha-to-coverage and
alpha-to-one. Also make it possible to query for supported sample count
with is_msaa_supported().

Use explicit resource_resolve() to resolve a resource. Note that it is illegal
to bind a unresolved resource as a sampler view, must be resolved first (as per
d3d10 and OGL APIs, binding unresolved resource would mean that special texture
fetch functions need to be used which give explicit control over what samples
to fetch, which isn't supported yet).

Also change surface_fill() and surface_copy() to operate directly on resources.
Blits should operate directly on resources, most often state trackers just used
get_tex_surface() then did a blit. Note this also means the blit bind flags are
gone, if a driver implements this functionality it is expected to handle it for
all resources having depth_stencil/render_target/sampler_view bind flags (might
even require it for all bind flags?).

Might want to introduce quality levels for MSAA later.
Might need to revisit this for hw which does instant resolve.

14 years agogallivm: BGNFOR/ENDFOR fallthrough to BGNLOOP/ENDLOOP
Alan Hourihane [Mon, 26 Apr 2010 16:42:51 +0000 (17:42 +0100)]
gallivm: BGNFOR/ENDFOR fallthrough to BGNLOOP/ENDLOOP

14 years agodraw: Always use the llvm middle end when available & enabled.
José Fonseca [Mon, 26 Apr 2010 14:31:37 +0000 (15:31 +0100)]
draw: Always use the llvm middle end when available & enabled.

14 years agosvga: Pass-through max_index to translate.
José Fonseca [Mon, 26 Apr 2010 13:55:45 +0000 (14:55 +0100)]
svga: Pass-through max_index to translate.

14 years agodraw: Pass-through pipe_buffer::max_index to translate.
José Fonseca [Mon, 26 Apr 2010 13:55:16 +0000 (14:55 +0100)]
draw: Pass-through pipe_buffer::max_index to translate.

max_index must be observed to prevent crashes due to bad index data.

I've been using this patch for some time without regressions.

Some places, where we use internal vertex buffer, it is not entirely
clear what max_index should be, so passing just ~0 to avoid regressions
for now.

14 years agotranslate: Take and respect a max_index argument.
José Fonseca [Mon, 26 Apr 2010 13:49:42 +0000 (14:49 +0100)]
translate: Take and respect a max_index argument.

14 years agor300g: Rudimentary stats, printed on exit.
Corbin Simpson [Mon, 26 Apr 2010 14:13:15 +0000 (07:13 -0700)]
r300g: Rudimentary stats, printed on exit.

Whoo!

14 years agor300g: Add stats debug flag.
Corbin Simpson [Mon, 26 Apr 2010 14:01:27 +0000 (07:01 -0700)]
r300g: Add stats debug flag.

14 years agor600: enable VERT_RESULT_PSIZ - makes point size & attenuation work
Andre Maasikas [Mon, 26 Apr 2010 10:18:04 +0000 (13:18 +0300)]
r600: enable VERT_RESULT_PSIZ - makes point size & attenuation work

doc additions: shader export ARRAY_BASE for EXPORT_POS: 60 is position,
61 is misc vec(VS_OUT_MISC_VEC - used here),
62, 63 are clip distance vectors(VS_OUT_CCDIST#)

sorry for formating - there seem to be so many different styles in r600

14 years agor600: adjust point sprites after 911fa4a4a1
Andre Maasikas [Mon, 26 Apr 2010 09:36:39 +0000 (12:36 +0300)]
r600: adjust point sprites after 911fa4a4a1

there's no more vp results for point coords so we cannot iterate
over vp outputs. Use only Point.CoordReplace[i]

14 years agoscons: Include headers from the local include directory first.
Vinson Lee [Mon, 26 Apr 2010 08:08:34 +0000 (01:08 -0700)]
scons: Include headers from the local include directory first.

Certain headers, such as GL/glew.h, are in both the Mesa include and the
default installed include directories. On recent distros the needed
symbols can be found in both places. On older distros the installed
headers could be lacking symbols, so for a header that exists in both
places, the local one should be found first.

14 years agoos: Check for spurious wakeups in pipe_barrier_wait.
Vinson Lee [Mon, 26 Apr 2010 07:25:30 +0000 (00:25 -0700)]
os: Check for spurious wakeups in pipe_barrier_wait.

The POSIX function pthread_cond_wait can have spurious wakeups when
waiting on a condition variable.

Add a 64-bit counter that is incremented whenever the barrier becomes
full. A woken thread checks the counter. If the counter has not changed
then it has been spuriously woken and goes back to sleep. If the counter
has changed then it was properly signaled and exits the barrier.

Tested on Mac OS X.

This patch was based on ideas from Luca Barbieri.

14 years agor300g: Use table CS writing when applicable.
Corbin Simpson [Mon, 26 Apr 2010 07:23:16 +0000 (00:23 -0700)]
r300g: Use table CS writing when applicable.

I just broke the 2000 fps barrier on glxgears. Yay?

14 years agor300g: Add CS table writing.
Corbin Simpson [Mon, 26 Apr 2010 07:08:46 +0000 (00:08 -0700)]
r300g: Add CS table writing.

14 years agoet/egl: Remove dead code.
Vinson Lee [Mon, 26 Apr 2010 07:19:14 +0000 (00:19 -0700)]
et/egl: Remove dead code.

proc_name cannot be NULL after the switch statement. proc_name is
assigned a value or the function has already returned.

14 years agonvfx: Add include path to SCons build.
Vinson Lee [Mon, 26 Apr 2010 05:50:23 +0000 (22:50 -0700)]
nvfx: Add include path to SCons build.

14 years agor300g: support index bias on r500 and DRM 2.3.0
Marek Olšák [Mon, 26 Apr 2010 05:08:59 +0000 (07:08 +0200)]
r300g: support index bias on r500 and DRM 2.3.0

14 years agor300g: support rendering more than 65535 vertices in one batch on r500
Marek Olšák [Mon, 26 Apr 2010 04:35:21 +0000 (06:35 +0200)]
r300g: support rendering more than 65535 vertices in one batch on r500

and disable batch splitting on these chipsets.

14 years agor300g: emit MSPOS regs
Marek Olšák [Mon, 26 Apr 2010 04:29:10 +0000 (06:29 +0200)]
r300g: emit MSPOS regs

14 years agor300g: force prefetch for non-indexed vertices
Marek Olšák [Mon, 26 Apr 2010 03:04:07 +0000 (05:04 +0200)]
r300g: force prefetch for non-indexed vertices

14 years agor300g: use the dummy FS shader for shaders with zero instructions
Marek Olšák [Mon, 26 Apr 2010 02:52:28 +0000 (04:52 +0200)]
r300g: use the dummy FS shader for shaders with zero instructions

14 years agor300g: allow unaligned vertex formats if the stride is dword-aligned
Marek Olšák [Sun, 25 Apr 2010 23:58:07 +0000 (01:58 +0200)]
r300g: allow unaligned vertex formats if the stride is dword-aligned

14 years agor300g: abort on unsupported vertex formats
Marek Olšák [Mon, 26 Apr 2010 00:27:03 +0000 (02:27 +0200)]
r300g: abort on unsupported vertex formats

14 years agor300g: abort if a vertex buffer offset is not dword-aligned
Marek Olšák [Mon, 22 Mar 2010 01:18:51 +0000 (02:18 +0100)]
r300g: abort if a vertex buffer offset is not dword-aligned

14 years agost/wgl: s/st_manager_create_api/st_gl_api_create/
Vinson Lee [Mon, 26 Apr 2010 04:42:19 +0000 (21:42 -0700)]
st/wgl: s/st_manager_create_api/st_gl_api_create/

commit 0c572c6828b6a338b07a6860280b3a314a81662e replaced
st_manager_create_api with st_gl_api_create.

Fixes MSVC build.

14 years agonvfx: Add missing header.
Vinson Lee [Mon, 26 Apr 2010 04:22:40 +0000 (21:22 -0700)]
nvfx: Add missing header.

14 years agost/dri: Refactor dri_st_api into other files
Jakob Bornecrantz [Sat, 24 Apr 2010 13:28:55 +0000 (14:28 +0100)]
st/dri: Refactor dri_st_api into other files

14 years agost/dri: Make st_framebuffer_iface the base for dri_drawable
Jakob Bornecrantz [Sat, 24 Apr 2010 13:05:59 +0000 (14:05 +0100)]
st/dri: Make st_framebuffer_iface the base for dri_drawable

14 years agost/dri: Make st_manager the base for dri_screen
Jakob Bornecrantz [Sat, 24 Apr 2010 10:08:58 +0000 (11:08 +0100)]
st/dri: Make st_manager the base for dri_screen

14 years agost/dri: Add hooks for framebuffer functions
Jakob Bornecrantz [Sat, 24 Apr 2010 12:36:09 +0000 (13:36 +0100)]
st/dri: Add hooks for framebuffer functions

14 years agost/dri: Make lookup_egl_image a hook
Jakob Bornecrantz [Sat, 24 Apr 2010 11:35:56 +0000 (12:35 +0100)]
st/dri: Make lookup_egl_image a hook

14 years agost_api: Remove st_module
Jakob Bornecrantz [Sat, 24 Apr 2010 00:05:49 +0000 (01:05 +0100)]
st_api: Remove st_module

The struct st_module isn't needed as it is the same thing as the st_api
struct. That is they both represent the API. Instead just use a single
function entry point to the the API.

14 years agollvmpipe: Respect pipe_sampler_view::swizzle_r/g/b/a
José Fonseca [Sun, 25 Apr 2010 23:32:13 +0000 (00:32 +0100)]
llvmpipe: Respect pipe_sampler_view::swizzle_r/g/b/a

This allows u_sampler_view_default_dx9_template to do its magic on DX9.

14 years agodraw: Respect pipe_vertex_buffer::max_index in llvm generated code.
José Fonseca [Sun, 25 Apr 2010 20:43:49 +0000 (21:43 +0100)]
draw: Respect pipe_vertex_buffer::max_index in llvm generated code.

Everybody should respect max_index, specially llvm generated code, which
likes to eat vertices 4 at a time, so it may end up chew a bit a bit more
than actually exists.

14 years agollvmpipe: No need to flush the caches for buffers.
José Fonseca [Sun, 25 Apr 2010 16:15:56 +0000 (17:15 +0100)]
llvmpipe: No need to flush the caches for buffers.

14 years agosoftpipe: Make softpipe transfers in-order.
José Fonseca [Sun, 25 Apr 2010 16:03:48 +0000 (17:03 +0100)]
softpipe: Make softpipe transfers in-order.

Transfer, being now a context operation, should happen in order with
all other contexts operations. If there is rendering pending on the
resource then the driver must flush and potentially wait itself
internally.

Instead of avoiding using transfers internally (as done in llvmpipe) I've
opted to simply pass PIPE_TRANSFER_UNSYNCHRONIZED in all internal
transfers, to avoid infinite recursion.

14 years agollvmpipe: Cleanup/improve llvmpipe_flush_resource usage.
José Fonseca [Sun, 25 Apr 2010 15:59:09 +0000 (16:59 +0100)]
llvmpipe: Cleanup/improve llvmpipe_flush_resource usage.

Recognize PIPE_TRANSFER_UNSYNCHRONIZED and PIPE_TRANSFER_DONTBLOCK.

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Sun, 25 Apr 2010 20:10:02 +0000 (13:10 -0700)]
llvmpipe: Remove unused variable.

14 years agollvmpipe: llvmpipe_flush_texture -> llvmpipe_flush_resource
José Fonseca [Sun, 25 Apr 2010 14:49:03 +0000 (15:49 +0100)]
llvmpipe: llvmpipe_flush_texture -> llvmpipe_flush_resource

14 years agollvmpipe: Fix buffer overflow unswizzling several formats.
José Fonseca [Sun, 25 Apr 2010 14:40:06 +0000 (15:40 +0100)]
llvmpipe: Fix buffer overflow unswizzling several formats.

Array formats without for channels were being advanced as four channels,
causing buffer overflows.

14 years agosoftpipe: Hardcode TILE_CLEAR_OPTIMIZATION to 1.
José Fonseca [Sun, 25 Apr 2010 14:05:41 +0000 (15:05 +0100)]
softpipe: Hardcode TILE_CLEAR_OPTIMIZATION to 1.

The un-optimized path relies on surface_fill which can only handle formats
with depth <= 32, so it is pointless to keep it around.

14 years agollvmpipe: Replace tile_read/write with more descriptive swizzle/unswizzle verbs.
José Fonseca [Sun, 25 Apr 2010 13:53:40 +0000 (14:53 +0100)]
llvmpipe: Replace tile_read/write with more descriptive swizzle/unswizzle verbs.

14 years agollvmpipe: Cleanup llvmpipe_is_format_supported().
José Fonseca [Sun, 25 Apr 2010 13:52:27 +0000 (14:52 +0100)]
llvmpipe: Cleanup llvmpipe_is_format_supported().

It should be just cosmetic.

14 years agosoftpipe: More accurate softpipe_is_format_supported().
José Fonseca [Sun, 25 Apr 2010 13:51:33 +0000 (14:51 +0100)]
softpipe: More accurate softpipe_is_format_supported().

Unfortunately there are some heavy limitations on supported render target
formats due to the way clear values are used internally.

14 years agollvmpipe: Remove sp2lp.sh.
José Fonseca [Sun, 25 Apr 2010 11:12:54 +0000 (12:12 +0100)]
llvmpipe: Remove sp2lp.sh.

Irrelevant now that llvmpipe and softpipe grew so far apart.

14 years agollvmpipe: lp_tex_sample_llvm.c -> lp_tex_sample.c
José Fonseca [Sun, 25 Apr 2010 11:11:36 +0000 (12:11 +0100)]
llvmpipe: lp_tex_sample_llvm.c -> lp_tex_sample.c

'llvm' suffix unnecessary now that the C sampling version disappeared.

14 years agost/dri: Add missing header.
Vinson Lee [Sun, 25 Apr 2010 09:18:52 +0000 (02:18 -0700)]
st/dri: Add missing header.

Add GL/internal/dri_interface.h for __DRI_TEXTURE_FORMAT_RGB.

14 years agogallivm: Rename variable info to opcode_info.
Vinson Lee [Sun, 25 Apr 2010 09:04:13 +0000 (02:04 -0700)]
gallivm: Rename variable info to opcode_info.

Avoid hiding existing variable already named info in outer scope.

14 years agoradeon: Remove NULL check of bo_legacy->tobj.
Vinson Lee [Sun, 25 Apr 2010 06:41:59 +0000 (23:41 -0700)]
radeon: Remove NULL check of bo_legacy->tobj.

bo_legacy->tobj cannot be NULL before the call to driUpdateTextureLRU.
There is a NULL check earlier in the routine, and if bo_legacy->tobj is
NULL, memory is allocated.

14 years agogallivm: Remove NULL check of pointer that can't be NULL.
Vinson Lee [Sun, 25 Apr 2010 06:31:35 +0000 (23:31 -0700)]
gallivm: Remove NULL check of pointer that can't be NULL.

info cannot be NULL at the call to debug_printf. emit_instruction
dereferences info, so at debug_printf it is either not NULL or the
program has already crashed.

14 years agodri: Remove unnecessary header.
Vinson Lee [Sun, 25 Apr 2010 06:14:27 +0000 (23:14 -0700)]
dri: Remove unnecessary header.

14 years agonvfx: Add to SCons build.
Vinson Lee [Sat, 24 Apr 2010 23:22:47 +0000 (16:22 -0700)]
nvfx: Add to SCons build.

14 years agollvm: fix configure.ac harder
Dave Airlie [Sat, 24 Apr 2010 21:48:48 +0000 (07:48 +1000)]
llvm: fix configure.ac harder

14 years agonv50: Add to SCons build.
Vinson Lee [Sat, 24 Apr 2010 21:38:48 +0000 (14:38 -0700)]
nv50: Add to SCons build.

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Sat, 24 Apr 2010 21:29:08 +0000 (14:29 -0700)]
llvmpipe: Remove unused variable.

14 years agollvmpipe: Remove unnecessary header.
Vinson Lee [Sat, 24 Apr 2010 21:19:47 +0000 (14:19 -0700)]
llvmpipe: Remove unnecessary header.

14 years agollvmpipe: Implement shader bias.
José Fonseca [Sat, 24 Apr 2010 20:00:45 +0000 (21:00 +0100)]
llvmpipe: Implement shader bias.

Fixes glean glsl1 test: texture2D(), with bias.

14 years agomesa: Eliminate multiple va_list usage.
José Fonseca [Sat, 24 Apr 2010 19:31:30 +0000 (20:31 +0100)]
mesa: Eliminate multiple va_list usage.

va_list is a mutable iterator. When passed to a function it will likely
point to somewhere else.

This fixes segmentation fault in glean vertProg1 on Ubuntu 9.10.

14 years agoutil: Add missing static keyword.
José Fonseca [Sat, 24 Apr 2010 15:13:54 +0000 (16:13 +0100)]
util: Add missing static keyword.

14 years agoutil: Fix unsigned <-> ptr conversions.
José Fonseca [Sat, 24 Apr 2010 15:13:41 +0000 (16:13 +0100)]
util: Fix unsigned <-> ptr conversions.

14 years agollvmpipe: Initialize dummy variable.
José Fonseca [Sat, 24 Apr 2010 15:13:18 +0000 (16:13 +0100)]
llvmpipe: Initialize dummy variable.

14 years agollvmpipe: Don't use fences when not using threads.
José Fonseca [Sat, 24 Apr 2010 15:13:04 +0000 (16:13 +0100)]
llvmpipe: Don't use fences when not using threads.

lp_setup_flush has effect immediately.

14 years agollvmpipe: Move the determination of the number of threads to the screen.
José Fonseca [Sat, 24 Apr 2010 12:20:39 +0000 (13:20 +0100)]
llvmpipe: Move the determination of the number of threads to the screen.

14 years agogallivm: Centralize the cpu caps detection.
José Fonseca [Sat, 24 Apr 2010 12:19:10 +0000 (13:19 +0100)]
gallivm: Centralize the cpu caps detection.

14 years agollvmpipe: Pass flatshade_first to setup.
José Fonseca [Sat, 24 Apr 2010 11:00:06 +0000 (12:00 +0100)]
llvmpipe: Pass flatshade_first to setup.

Fixes piglit provoking-vertex.

14 years agosvga: D3DCOLOR actually stands for B8G8R8A8.
José Fonseca [Sat, 24 Apr 2010 10:38:41 +0000 (11:38 +0100)]
svga: D3DCOLOR actually stands for B8G8R8A8.

14 years agosvga: Translate recently added vertex formats.
José Fonseca [Sat, 24 Apr 2010 10:34:22 +0000 (11:34 +0100)]
svga: Translate recently added vertex formats.

14 years agocso_cache: Ensure irrelevant state of the blend state is zeroed.
José Fonseca [Sat, 24 Apr 2010 09:33:44 +0000 (10:33 +0100)]
cso_cache: Ensure irrelevant state of the blend state is zeroed.

Otherwise drivers that bake the full blend state in a key end up having
uninitialized memory in their key.

Courtesy of valgrind.

14 years agost/dri: DRI2 give proper binding to depth buffer
Jakob Bornecrantz [Sat, 24 Apr 2010 10:23:52 +0000 (11:23 +0100)]
st/dri: DRI2 give proper binding to depth buffer

14 years agosw/xlib: Fix bad logic in shm allocation.
José Fonseca [Sat, 24 Apr 2010 09:15:09 +0000 (10:15 +0100)]
sw/xlib: Fix bad logic in shm allocation.

Fixes fdo 27823.

14 years agogallivm: LLVMConstBitCast -> LLVMBuildBitCast
José Fonseca [Sat, 24 Apr 2010 08:58:41 +0000 (09:58 +0100)]
gallivm: LLVMConstBitCast -> LLVMBuildBitCast

As the argument in general might not be a constant.

14 years agollvmpipe: add initial autoconf support.
Dave Airlie [Thu, 22 Apr 2010 04:59:29 +0000 (14:59 +1000)]
llvmpipe: add initial autoconf support.

allows the swrastg_dri.so to be built with llvmpipe, also links llvm
to all dri drivers

use --enable-gallium-llvm to use it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agonouveau: Add to SCons build.
Vinson Lee [Sat, 24 Apr 2010 08:15:00 +0000 (01:15 -0700)]
nouveau: Add to SCons build.