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

13 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>
13 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>
13 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>
13 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>
13 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

13 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.

13 years agor300g: move ZTOP to separate file
Marek Olšák [Sun, 18 Apr 2010 03:10:43 +0000 (05:10 +0200)]
r300g: move ZTOP to separate file

Ideally, HiZ should go in r300_hyperz.c next to ZTOP.

13 years agoradeon: fix warnings
Marek Olšák [Tue, 27 Apr 2010 22:38:27 +0000 (00:38 +0200)]
radeon: fix warnings

13 years agoAdd missing _ in extension category name
Ian Romanick [Tue, 27 Apr 2010 21:54:32 +0000 (14:54 -0700)]
Add missing _ in extension category name

13 years agogallium: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:49:32 +0000 (21:49 +0100)]
gallium: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

Arcane DX9 opcodes that never were emitted by Mesa and have no DX10
counterpart. Slated for removal for quite some time now.

13 years agogallium/docs: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:18:31 +0000 (21:18 +0100)]
gallium/docs: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

13 years agotgsi: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:18:01 +0000 (21:18 +0100)]
tgsi: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

13 years agor300: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:17:08 +0000 (21:17 +0100)]
r300: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

13 years agocell: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:16:45 +0000 (21:16 +0100)]
cell: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

13 years agosvga: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:16:35 +0000 (21:16 +0100)]
svga: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

13 years agogallivm: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.
José Fonseca [Tue, 27 Apr 2010 20:16:10 +0000 (21:16 +0100)]
gallivm: Drop BGNFOR, ENDFOR, REP, and ENDREP opcodes.

13 years agollvmpipe: remove lp_scene_map_buffers(), lp_scene_unmap_buffers()
Brian Paul [Tue, 27 Apr 2010 17:50:23 +0000 (11:50 -0600)]
llvmpipe: remove lp_scene_map_buffers(), lp_scene_unmap_buffers()

13 years agollvmpipe: implement max scene size
Brian Paul [Tue, 27 Apr 2010 17:44:33 +0000 (11:44 -0600)]
llvmpipe: implement max scene size

When the size of the scene (binned data plus referenced resources/textures)
exceeds LP_MAX_SCENE_SIZE flush/render the scene.  This could be improved
in various ways but is a good start.

Fixes piglit streaming-texture-leak test.

13 years agollvmpipe: added llvmpipe_resource_size()
Brian Paul [Tue, 27 Apr 2010 17:32:25 +0000 (11:32 -0600)]
llvmpipe: added llvmpipe_resource_size()

13 years agollvmpipe: comment-out unused field for now
Brian Paul [Tue, 27 Apr 2010 17:31:45 +0000 (11:31 -0600)]
llvmpipe: comment-out unused field for now

13 years agollvmipe: update comments
Brian Paul [Tue, 27 Apr 2010 16:55:51 +0000 (10:55 -0600)]
llvmipe: update comments

13 years agomesa: move/rename is_depth_or_stencil_format()
Brian Paul [Tue, 27 Apr 2010 15:31:19 +0000 (09:31 -0600)]
mesa: move/rename is_depth_or_stencil_format()

Put it with other, similar functions.

13 years agost/mesa: rename var and update st_choose_format() comments
Brian Paul [Tue, 27 Apr 2010 15:27:00 +0000 (09:27 -0600)]
st/mesa: rename var and update st_choose_format() comments

13 years agost/mesa: call is_format_supported() for compressed formats
Brian Paul [Tue, 27 Apr 2010 15:18:57 +0000 (09:18 -0600)]
st/mesa: call is_format_supported() for compressed formats

These compressed format switch cases shouldn't be hit if we don't
support the compressed texture extensions, but let's be safe and
ask the driver if they're supported as we do in other cases.

13 years agost/mesa: 80-column wrapping
Brian Paul [Tue, 27 Apr 2010 15:14:32 +0000 (09:14 -0600)]
st/mesa: 80-column wrapping

13 years agost/mesa: try to get actual compressed format for GL_COMPRESSED_RGB[A] formats
Brian Paul [Tue, 27 Apr 2010 15:11:36 +0000 (09:11 -0600)]
st/mesa: try to get actual compressed format for GL_COMPRESSED_RGB[A] formats

13 years agoMerge branch '7.8'
Brian Paul [Tue, 27 Apr 2010 14:34:06 +0000 (08:34 -0600)]
Merge branch '7.8'

Conflicts:

src/gallium/drivers/nv30/nv30_context.c
src/gallium/drivers/nv40/nv40_context.c
src/gallium/drivers/nv40/nv40_state_emit.c

13 years agost/mesa: fix strides in (de)compress_image() functions
Brian Paul [Tue, 27 Apr 2010 14:28:53 +0000 (08:28 -0600)]
st/mesa: fix strides in (de)compress_image() functions

Mipmap generation for compressed textures works now.

13 years agoutil: fix assorted problems in the image packing functions
Brian Paul [Tue, 27 Apr 2010 14:28:22 +0000 (08:28 -0600)]
util: fix assorted problems in the image packing functions

13 years agonv30/40g: fix calls to draw_create(), draw_set_rasterizer_state()
Pedro Maia [Tue, 27 Apr 2010 14:21:49 +0000 (08:21 -0600)]
nv30/40g: fix calls to draw_create(), draw_set_rasterizer_state()

Signed-off-by: Brian Paul <brianp@vmware.com>
13 years agogallivm: Disable llvm.cos.v4f32 and llvm.sin.v4f32 instrinsics on Windows.
José Fonseca [Tue, 27 Apr 2010 13:27:24 +0000 (14:27 +0100)]
gallivm: Disable llvm.cos.v4f32 and llvm.sin.v4f32 instrinsics on Windows.

Runtime linking doesn't quite work.

Just comment then out for now to prevent crashes. These will go away in
the future because calling 4 times CRT's cosf()/sinf() is over-precise
and under-performing.

13 years agogallivm: Ensure all allocas are in the first block.
José Fonseca [Tue, 27 Apr 2010 12:20:12 +0000 (13:20 +0100)]
gallivm: Ensure all allocas are in the first block.

Refactor the code to make this easier.

13 years agoi965g: Fix scons build of winsys
Jakob Bornecrantz [Tue, 27 Apr 2010 11:01:14 +0000 (12:01 +0100)]
i965g: Fix scons build of winsys

13 years agost/dri: Don't check for null when user ensures non-null
Jakob Bornecrantz [Mon, 26 Apr 2010 23:56:25 +0000 (00:56 +0100)]
st/dri: Don't check for null when user ensures non-null

13 years agodri_util: Assume error checking is done properly in glXMakeCurrent
Jakob Bornecrantz [Mon, 26 Apr 2010 14:32:08 +0000 (15:32 +0100)]
dri_util: Assume error checking is done properly in glXMakeCurrent

In short what the code did before:

    __DRIscreen *psp = NULL;
    if (pcp)
       psp = pcp->psb;

    assert(psp);
    if (psp->stuff)
       other_stuff();

    return psb->even_more(pcp);

Remove all that stupid checking which still segfaults/asserts later on and
just do what we do in driUnbindContext. Also limited testing show libGL never
call driUnbindContext or driBindContext with cPriv == NULL.

13 years agost/dri: Use flush function of old context not new
Jakob Bornecrantz [Mon, 26 Apr 2010 13:59:46 +0000 (14:59 +0100)]
st/dri: Use flush function of old context not new

13 years agor300g: fix mipmapped texture3D size calculation
Marek Olšák [Tue, 27 Apr 2010 10:22:23 +0000 (12:22 +0200)]
r300g: fix mipmapped texture3D size calculation

I accidentally inverted the condition. :(
Broken since the commit 2579fe4044012a552c8be222ffae76b48de13592.
FDO bug #27851.

13 years agor300g: compensate for non-atomized emit_query_end in the CS
Marek Olšák [Tue, 27 Apr 2010 09:42:08 +0000 (11:42 +0200)]
r300g: compensate for non-atomized emit_query_end in the CS

And reserve a little more space just in case.

13 years agoprogs/tests: Remove meaningless const qualifier in arraytexture.c.
Vinson Lee [Tue, 27 Apr 2010 08:22:26 +0000 (01:22 -0700)]
progs/tests: Remove meaningless const qualifier in arraytexture.c.

13 years agonvfx: Move src/gallium/drivers to beginning of SCons include path.
Vinson Lee [Tue, 27 Apr 2010 07:46:00 +0000 (00:46 -0700)]
nvfx: Move src/gallium/drivers to beginning of SCons include path.

libdrm-2.4.20 and earlier include the nouveau/nouveau_class.h header. A
later version of libdrm will not ship this header. Mesa also has this
header at src/gallium/drivers.

The symbol NV34TCL_VTXFMT_TYPE_HALF is needed by nvfx_vbo.c. This symbol
is not in the libdrm copy of the header but is in the Mesa copy of the
header. This patch moves src/gallium/drivers to the beginning of the
include paths such that when building on hosts with libdrm-2.4.20 or
ealier the build uses the copy in Mesa.

13 years agoprogs/egl: Add egl/eglut to PROGRAM_DIRS.
Chia-I Wu [Tue, 27 Apr 2010 06:13:13 +0000 (14:13 +0800)]
progs/egl: Add egl/eglut to PROGRAM_DIRS.

Make sure eglut is built before the demos.  This should work more
reliably with make -j<N>.

13 years agodocs: update some GL3 status
Brian Paul [Tue, 27 Apr 2010 02:35:55 +0000 (20:35 -0600)]
docs: update some GL3 status

13 years agomesa: start adding GL 3.1 signed normalized texture formats
Brian Paul [Tue, 27 Apr 2010 02:35:19 +0000 (20:35 -0600)]
mesa: start adding GL 3.1 signed normalized texture formats

13 years agodocs: document updated glext.h and glxext.h files
Brian Paul [Tue, 27 Apr 2010 02:32:24 +0000 (20:32 -0600)]
docs: document updated glext.h and glxext.h files

13 years agoglxext.h: upgraded to 2010/02/10 version
Brian Paul [Tue, 27 Apr 2010 02:32:02 +0000 (20:32 -0600)]
glxext.h: upgraded to 2010/02/10 version

13 years agoglext: upgraded to version 61
Brian Paul [Tue, 27 Apr 2010 02:31:19 +0000 (20:31 -0600)]
glext: upgraded to version 61

13 years agor300g: reserve CS space for index offset
Marek Olšák [Tue, 27 Apr 2010 00:42:57 +0000 (02:42 +0200)]
r300g: reserve CS space for index offset

This has caused CS overflow since the commit
671f1e1229877d459cfd76e2cf5ea89c8d881036.

TA3D works here again.

13 years agollvmpipe: Remove unused variable.
Vinson Lee [Mon, 26 Apr 2010 23:31:05 +0000 (16:31 -0700)]
llvmpipe: Remove unused variable.

13 years agor300g: add support for more unaligned vertex formats
Marek Olšák [Mon, 26 Apr 2010 22:09:21 +0000 (00:09 +0200)]
r300g: add support for more unaligned vertex formats

An aligned stride is still needed for it to work.

I am slowly approaching the Sauerbraten milestone!

13 years agor300g: setup PSC first, then align vertex formats
Marek Olšák [Mon, 26 Apr 2010 22:06:07 +0000 (00:06 +0200)]
r300g: setup PSC first, then align vertex formats

This allows us to put correct swizzles for undefined components in PSC.

13 years agor300g: set undefined vertex swizzles to (0,0,0,1) respectively
Marek Olšák [Mon, 26 Apr 2010 22:01:03 +0000 (00:01 +0200)]
r300g: set undefined vertex swizzles to (0,0,0,1) respectively

13 years agodraw/llvm: implement fetch elts paths
Zack Rusin [Mon, 26 Apr 2010 17:51:47 +0000 (13:51 -0400)]
draw/llvm: implement fetch elts paths

we were only running the llvm paths when the input elts were linear,
now we can handle abritrary fetch elts arrays. we do this by generating
two paths - linear and fetch_elts one and just selecting the right one
at run time.

13 years agor600: add support for more rendering formats
Alex Deucher [Mon, 26 Apr 2010 19:00:28 +0000 (15:00 -0400)]
r600: add support for more rendering formats

13 years agor300g: disable point sprites (again)
Marek Olšák [Mon, 26 Apr 2010 18:53:17 +0000 (20:53 +0200)]
r300g: disable point sprites (again)

They cause lockups. The users doesn't seem to like them.

13 years agor300g: fix warnings when printing uint64_t
Marek Olšák [Mon, 26 Apr 2010 18:16:59 +0000 (20:16 +0200)]
r300g: fix warnings when printing uint64_t

Though not nice, this is the correct way.

13 years agor300g: fix warnings by using the const qualifier
Marek Olšák [Mon, 26 Apr 2010 18:16:44 +0000 (20:16 +0200)]
r300g: fix warnings by using the const qualifier

See also the libdrm commit af98ccf4dd5dcb1b904ec32b9bd1521e6bf7dda5.

13 years agor300g: use CS_OUT_TABLE better
Matt Turner [Mon, 26 Apr 2010 17:23:53 +0000 (13:23 -0400)]
r300g: use CS_OUT_TABLE better

Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Marek Olšák <maraeo@gmail.com>
13 years agor600: avoid setting invalid bit on r7xx for blits
Alex Deucher [Mon, 26 Apr 2010 17:45:01 +0000 (13:45 -0400)]
r600: avoid setting invalid bit on r7xx for blits

13 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

13 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.

13 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.

13 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.

13 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.

13 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!

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

13 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

13 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]

13 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.

13 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.

13 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?

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

13 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.

13 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.

13 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

13 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.

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

13 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

13 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

13 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

13 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

13 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

13 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.

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

13 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

13 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

13 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

13 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

13 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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

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

13 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

13 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.

13 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.

13 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.