mesa.git
14 years agor300g: do not use tiling for scanout buffers
Marek Olšák [Fri, 9 Apr 2010 22:10:56 +0000 (00:10 +0200)]
r300g: do not use tiling for scanout buffers

14 years agoglx: Support direct rendering pbuffers
Kristian Høgsberg [Fri, 9 Apr 2010 21:16:33 +0000 (17:16 -0400)]
glx: Support direct rendering pbuffers

We've supported indirect rendering pbuffers for a while, but not direct
rendering pbuffers.  The way we do this is by creating a hidden pixmap
and wrap that in a GLX pbuffer.  This only works when we have DRI2 on
the server, but if the server doesn't have DRI2, it won't expose configs
with pbuffer bits enabled.

14 years agoglx: Fix config chooser logic for 'mask' matching
Kristian Høgsberg [Fri, 9 Apr 2010 02:09:11 +0000 (22:09 -0400)]
glx: Fix config chooser logic for 'mask' matching

When matching attributes using the 'mask' matching criteria, the spec
says that

  "Only GLXFBConfigs for which the set bits of attribute include all
   the bits that are set in the requested value are
   considered. (Additional bits might be set in the attribute)."

The current test returns true if the two bit masks have bits in
common, specifically it matches even if the requested value has bits
set that are not set in the fbconfig attribute.  For example, an
application asking for

  GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_PBUFFER_BIT,

as glxpbdemo does, will match fbconfigs that don't support pbuffer
rendering, as long as they support pixmap rendering.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
14 years agoFix copyright headers.
Chia-I Wu [Fri, 9 Apr 2010 17:09:04 +0000 (01:09 +0800)]
Fix copyright headers.

Update the warranty disclaimer to use the more general "THE AUTHORS OR
COPYRIGHT HOLDERS".  This is done manually on files created by me.  Hope
that I do not miss anything.

14 years agost/egl: Fix a typo in determining the render buffer.
Chia-I Wu [Fri, 9 Apr 2010 15:38:12 +0000 (23:38 +0800)]
st/egl: Fix a typo in determining the render buffer.

14 years agollvmpipe: fix transposed stencil ref / values comparison
Brian Paul [Fri, 9 Apr 2010 16:52:48 +0000 (10:52 -0600)]
llvmpipe: fix transposed stencil ref / values comparison

14 years agoMerge branch '7.8'
Brian Paul [Fri, 9 Apr 2010 16:09:24 +0000 (10:09 -0600)]
Merge branch '7.8'

14 years agost/mesa: new assertions to check array indexes
Brian Paul [Fri, 9 Apr 2010 16:08:27 +0000 (10:08 -0600)]
st/mesa: new assertions to check array indexes

14 years agomesa: fix instruction indexing bugs
Brian Paul [Fri, 9 Apr 2010 16:03:31 +0000 (10:03 -0600)]
mesa: fix instruction indexing bugs

We were looping over instructions but only looking at the 0th instruction's
opcode.

Fixes fd.o bug 27566.

14 years agoutil: Fix typo in earlier commit.
José Fonseca [Fri, 9 Apr 2010 15:56:18 +0000 (16:56 +0100)]
util: Fix typo in earlier commit.

14 years agoutil: ubyte_to_float and float_to_ubyte whenever possible.
José Fonseca [Fri, 9 Apr 2010 15:53:07 +0000 (16:53 +0100)]
util: ubyte_to_float and float_to_ubyte whenever possible.

More accurate results.

We should probably generalize these functions for more cases.

14 years agoutil: Get all depth stencil tests passing.
José Fonseca [Fri, 9 Apr 2010 15:30:52 +0000 (16:30 +0100)]
util: Get all depth stencil tests passing.

Note the tests don't test all the paths, in particular stride, and
ensuring the old value is preserved.

14 years agoutil: Add missing break statement.
José Fonseca [Fri, 9 Apr 2010 14:25:55 +0000 (15:25 +0100)]
util: Add missing break statement.

14 years agoutil: Use consistent symbols in pack generator.
José Fonseca [Fri, 9 Apr 2010 13:16:01 +0000 (14:16 +0100)]
util: Use consistent symbols in pack generator.

14 years agoutil: Reorder format tests -- group by format.
José Fonseca [Fri, 9 Apr 2010 13:14:54 +0000 (14:14 +0100)]
util: Reorder format tests -- group by format.

14 years agoutil: Add dedicated depth-stencil packing/unpacking functions.
José Fonseca [Fri, 9 Apr 2010 13:03:02 +0000 (14:03 +0100)]
util: Add dedicated depth-stencil packing/unpacking functions.

Depth-stencil manually written given that each one is very close to
be a special case.

u_format_zs.c's still untested.

14 years agogallium/unit: Silence warnings.
José Fonseca [Thu, 8 Apr 2010 21:45:44 +0000 (22:45 +0100)]
gallium/unit: Silence warnings.

14 years agoscons: Set -gstabs for C++ too.
José Fonseca [Thu, 18 Mar 2010 15:51:11 +0000 (15:51 +0000)]
scons: Set -gstabs for C++ too.

14 years agost/xorg: Fix thinko.
Corbin Simpson [Fri, 9 Apr 2010 13:48:04 +0000 (06:48 -0700)]
st/xorg: Fix thinko.

14 years agonouveau: Import latest nouveau_class.h from renouveau
Ben Skeggs [Fri, 9 Apr 2010 10:58:29 +0000 (20:58 +1000)]
nouveau: Import latest nouveau_class.h from renouveau

And fix nv50_screen.c to compile against the updated header.

14 years agost/xorg: Fix bad paramf.
Corbin Simpson [Fri, 9 Apr 2010 10:38:23 +0000 (03:38 -0700)]
st/xorg: Fix bad paramf.

Should be an integer param, according to docs.

14 years agor300g: Fill out dummy fence functions.
Corbin Simpson [Fri, 9 Apr 2010 10:37:53 +0000 (03:37 -0700)]
r300g: Fill out dummy fence functions.

xorg st needs them.

14 years agoutil: Include u_debug for debug_print_format.
Corbin Simpson [Tue, 24 Nov 2009 15:42:44 +0000 (07:42 -0800)]
util: Include u_debug for debug_print_format.

Caused fun linker errors on r600g.

14 years agost/egl: Move probe interface to native_probe.h.
Chia-I Wu [Fri, 9 Apr 2010 09:49:55 +0000 (17:49 +0800)]
st/egl: Move probe interface to native_probe.h.

native.h is getting a little messy over time.

14 years agost/egl: Remove pbuffer from the native interface.
Chia-I Wu [Fri, 9 Apr 2010 09:27:06 +0000 (17:27 +0800)]
st/egl: Remove pbuffer from the native interface.

A pbuffer is an EGL resource.  It does not need a native display to
create.

14 years agoutil: Set DXTN_LIBNAME to libtxc_dxtn.dylib on Mac OS X.
Vinson Lee [Fri, 9 Apr 2010 07:40:15 +0000 (00:40 -0700)]
util: Set DXTN_LIBNAME to libtxc_dxtn.dylib on Mac OS X.

14 years agodocs: link to 7.8.2 release notes
Brian Paul [Thu, 8 Apr 2010 19:11:05 +0000 (13:11 -0600)]
docs: link to 7.8.2 release notes

14 years agodocs: initial 7.8.2 release notes
Brian Paul [Thu, 8 Apr 2010 19:10:51 +0000 (13:10 -0600)]
docs: initial 7.8.2 release notes

14 years agoprogs/tests: added some debug code (disabled)
Brian Paul [Thu, 8 Apr 2010 19:09:01 +0000 (13:09 -0600)]
progs/tests: added some debug code (disabled)

14 years agost/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression
Brian Paul [Thu, 8 Apr 2010 19:05:35 +0000 (13:05 -0600)]
st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression

Commit 1454f20a991ddda35f1a2ffda953012078b407ba caused the regression.
When the vertex shader emitted both a texcoord and color we were grabbing
the wrong vertex attributes.  Fix the draw_quad() code to put texcoords
in slot[1] and color in slot[2].  That's a bit cleaner than changing
the vertex shader code.

Tested with progs/tests/zreaddraw.c

14 years agoutil: Support PIPE_FORMAT_B4G4R4X4_UNORM and PIPE_FORMAT_R8G8B8X8_UNORM.
José Fonseca [Thu, 8 Apr 2010 18:48:02 +0000 (19:48 +0100)]
util: Support PIPE_FORMAT_B4G4R4X4_UNORM and PIPE_FORMAT_R8G8B8X8_UNORM.

14 years agogallium: Add a couple more of D3D9 formats forgotten earlier.
José Fonseca [Thu, 8 Apr 2010 18:47:40 +0000 (19:47 +0100)]
gallium: Add a couple more of D3D9 formats forgotten earlier.

14 years agointel: Call intel_prepare_render() in intelClear()
Li Peng [Thu, 8 Apr 2010 17:52:55 +0000 (13:52 -0400)]
intel: Call intel_prepare_render() in intelClear()

Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.

14 years agoutil: (Almost) universal format translation function.
José Fonseca [Thu, 8 Apr 2010 18:03:05 +0000 (19:03 +0100)]
util: (Almost) universal format translation function.

Untested.

14 years agoutil: Describe, implement, and test the new D3D9 color formats.
José Fonseca [Thu, 8 Apr 2010 17:55:51 +0000 (18:55 +0100)]
util: Describe, implement, and test the new D3D9 color formats.

14 years agogallium: Add missing D3D9 color formats.
José Fonseca [Thu, 8 Apr 2010 17:51:45 +0000 (18:51 +0100)]
gallium: Add missing D3D9 color formats.

14 years agoutil: is_array/mixed/etc is only meaningful for plain formats.
José Fonseca [Thu, 8 Apr 2010 16:51:31 +0000 (17:51 +0100)]
util: is_array/mixed/etc is only meaningful for plain formats.

14 years agoutil: Keep const keyword when unpacking formats.
José Fonseca [Thu, 8 Apr 2010 16:50:46 +0000 (17:50 +0100)]
util: Keep const keyword when unpacking formats.

14 years agoutil: Reorder the code generated function so that they are grouped by format.
José Fonseca [Thu, 8 Apr 2010 15:24:43 +0000 (16:24 +0100)]
util: Reorder the code generated function so that they are grouped by format.

Makes it easier to copy and paste.

14 years agointel: Call intel_prepare_render() in intelClear()
Li Peng [Thu, 8 Apr 2010 17:52:55 +0000 (13:52 -0400)]
intel: Call intel_prepare_render() in intelClear()

Make sure we have up to date buffers before we start looking at
the tiling bits to determine how to clear.

14 years agodraw llvm: hook up the generated function into the draw elts path
Zack Rusin [Thu, 8 Apr 2010 14:53:21 +0000 (10:53 -0400)]
draw llvm: hook up the generated function into the draw elts path

we were only using the jited function in the linear case, now drawelts
correctly uses the same path. it results in a significant gain in
real world apps (openarena went from 23fps to 29fps)

14 years agodraw: Fix vertex buffer indexation.
José Fonseca [Thu, 8 Apr 2010 10:00:42 +0000 (11:00 +0100)]
draw: Fix vertex buffer indexation.

14 years agoutil: Don't call util_dl_close(library) when util_format_s3tc_init is successful."
José Fonseca [Thu, 8 Apr 2010 09:36:16 +0000 (10:36 +0100)]
util: Don't call util_dl_close(library) when util_format_s3tc_init is successful."

Otherwise the library will be unloaded and function pointers become invalid.

This reverts commit bc2bc0306e4dd8c56bd66a8aabf2433f6689653d.

14 years agoutil: util_dl_close(library) before exiting util_format_s3tc_init.
Vinson Lee [Thu, 8 Apr 2010 07:52:35 +0000 (00:52 -0700)]
util: util_dl_close(library) before exiting util_format_s3tc_init.

14 years agodraw llvm: Remove unnecessary header.
Vinson Lee [Thu, 8 Apr 2010 07:30:40 +0000 (00:30 -0700)]
draw llvm: Remove unnecessary header.

14 years agollvmpipe: Remove unnecessary header.
Vinson Lee [Thu, 8 Apr 2010 07:18:46 +0000 (00:18 -0700)]
llvmpipe: Remove unnecessary header.

14 years agoMerge remote branch 'origin/7.8'
Dave Airlie [Thu, 8 Apr 2010 06:48:41 +0000 (16:48 +1000)]
Merge remote branch 'origin/7.8'

Conflicts:
Makefile
configs/default
src/mesa/main/version.h

14 years agost/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.
Chia-I Wu [Mon, 5 Apr 2010 02:06:52 +0000 (10:06 +0800)]
st/dri: Fix setTexBuffer2 with __DRI_TEXTURE_FORMAT_RGB.

When the format is __DRI_TEXTURE_FORMAT_RGB, the texture should be
treated as if there is no alpha channel.

14 years agotexenvprogram: fix for ARB_draw_buffers.
Dave Airlie [Sat, 3 Apr 2010 03:34:29 +0000 (13:34 +1000)]
texenvprogram: fix for ARB_draw_buffers.

piglit has a test called fbo-drawbuffers, this fails for me on r300g,
and fixing the texenv program to use the DATA outputs fixes it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
14 years agodraw llvm: highly reduce the compilation times for draw llvm
Zack Rusin [Wed, 7 Apr 2010 21:46:55 +0000 (17:46 -0400)]
draw llvm: highly reduce the compilation times for draw llvm

our code resets pipe_vertex_buffer's with different offsets when rendering
vbo, meaning that we kept creating insane number of shaders even for simple
apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to
compile them. this patch passes pipe_vertex_buffer's to the jit function and lets
it to the stride/buffer_offset computation at run time. the slowdown at runtime
is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less
than 1.

14 years agogallivm: Get the format translation logic write.
José Fonseca [Wed, 7 Apr 2010 21:17:07 +0000 (22:17 +0100)]
gallivm: Get the format translation logic write.

14 years agoutil: Support fixed formats conversion.
José Fonseca [Wed, 7 Apr 2010 21:16:18 +0000 (22:16 +0100)]
util: Support fixed formats conversion.

14 years agoutil: Add copyright header to u_half.h
José Fonseca [Wed, 7 Apr 2010 20:00:18 +0000 (21:00 +0100)]
util: Add copyright header to u_half.h

14 years agoutil: Remove the half typedef from p_compiler.h.
José Fonseca [Wed, 7 Apr 2010 20:00:05 +0000 (21:00 +0100)]
util: Remove the half typedef from p_compiler.h.

Unnecessary, and doesn't even guarantee size.

14 years agollvmpipe: Add missing include.
José Fonseca [Wed, 7 Apr 2010 19:55:31 +0000 (20:55 +0100)]
llvmpipe: Add missing include.

14 years agoutil: Use stubs for the dynamically loaded S3TC functions.
José Fonseca [Wed, 7 Apr 2010 19:47:38 +0000 (20:47 +0100)]
util: Use stubs for the dynamically loaded S3TC functions.

Loosely based on Luca Barbieri's commit
52e9b990a192a9329006d5f7dd2ac222effea5a5.

14 years agodraw: Fix MSVC build (snprintf->util_snprintf).
José Fonseca [Wed, 7 Apr 2010 19:41:09 +0000 (20:41 +0100)]
draw: Fix MSVC build (snprintf->util_snprintf).

14 years agoutil: Remove u_tile.c YCbCr's.
José Fonseca [Wed, 7 Apr 2010 18:58:18 +0000 (19:58 +0100)]
util: Remove u_tile.c YCbCr's.

Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was
inconsistent: it was being interpreted as VYUY.

14 years agoutil: Implement YUV and subsampled RGB format conversion.
José Fonseca [Wed, 7 Apr 2010 18:47:24 +0000 (19:47 +0100)]
util: Implement YUV and subsampled RGB format conversion.

14 years agodraw: init draw->pt.middle.general = NULL just to be safe
Brian Paul [Wed, 7 Apr 2010 13:09:52 +0000 (07:09 -0600)]
draw: init draw->pt.middle.general = NULL just to be safe

This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).

14 years agollvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.
José Fonseca [Wed, 7 Apr 2010 12:49:29 +0000 (13:49 +0100)]
llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.

14 years agor300: Initialize compiler.max_temp_regs for blits.
Michel Dänzer [Wed, 7 Apr 2010 09:21:15 +0000 (11:21 +0200)]
r300: Initialize compiler.max_temp_regs for blits.

Blits were broken since commit e41a64591bf1a74465bf0adc7d35c991c4cfb4fe
('r300/compiler: make the max number of fragment shader temporaries
adjustable').

14 years agodraw llvm: Remove unnecessary headers.
Vinson Lee [Wed, 7 Apr 2010 08:04:45 +0000 (01:04 -0700)]
draw llvm: Remove unnecessary headers.

14 years agogallium: Add files to Makefile.
Vinson Lee [Wed, 7 Apr 2010 07:45:40 +0000 (00:45 -0700)]
gallium: Add files to Makefile.

This was missed in commit ae69f9fbf0a1aab7186e5b644085a5fe5aea99af.
New files from the gallium_draw_llvm merge were added to SCons but
not make.

14 years agollvmpipe: Remove unused variable.
Vinson Lee [Wed, 7 Apr 2010 06:48:00 +0000 (23:48 -0700)]
llvmpipe: Remove unused variable.

14 years agonouveau: allow multiple simultaneous maps of a pipe_transfer
Ben Skeggs [Wed, 7 Apr 2010 05:41:17 +0000 (15:41 +1000)]
nouveau: allow multiple simultaneous maps of a pipe_transfer

I'm not entirely convinced we want this behaviour (the underlying nouveau_bo
doesn't support it either), but since certain parts of the mesa state
tracker appear to require it lets make it work for now.

14 years agonv50: fix assertion that caused piglit texturing/texrect-many to fail
Ben Skeggs [Wed, 7 Apr 2010 05:06:59 +0000 (15:06 +1000)]
nv50: fix assertion that caused piglit texturing/texrect-many to fail

14 years agoscons: define DRAW_LLVM if we're building it
Zack Rusin [Wed, 7 Apr 2010 02:41:11 +0000 (22:41 -0400)]
scons: define DRAW_LLVM if we're building it

14 years agodraw llvm: disable printing of the LLVM ir
Zack Rusin [Wed, 7 Apr 2010 00:27:17 +0000 (20:27 -0400)]
draw llvm: disable printing of the LLVM ir

14 years agocell: fix build
Marc Dietrich [Tue, 6 Apr 2010 21:44:08 +0000 (23:44 +0200)]
cell: fix build

compile fix for cell driver.

Signed-off-by: Brian Paul <brianp@vmware.com>
14 years agogallium/draw: add additional DRAW_LLVM check
Brian Paul [Wed, 7 Apr 2010 02:20:13 +0000 (20:20 -0600)]
gallium/draw: add additional DRAW_LLVM check

Fixes build breakage.

14 years agoMerge branch 'gallium_draw_llvm'
Zack Rusin [Wed, 7 Apr 2010 00:09:08 +0000 (20:09 -0400)]
Merge branch 'gallium_draw_llvm'

14 years agollvmpipe: Support S3TC when util_format_s3tc_enabled is set.
José Fonseca [Tue, 6 Apr 2010 21:49:57 +0000 (22:49 +0100)]
llvmpipe: Support S3TC when util_format_s3tc_enabled is set.

14 years agogallivm: Fallback to calling util_format_description::fetch_float for any format...
José Fonseca [Tue, 6 Apr 2010 21:49:33 +0000 (22:49 +0100)]
gallivm: Fallback to calling util_format_description::fetch_float for any format we can't code LLVM IR directly.

14 years agogallivm: Move the global LLVM objects (module, engine, provider, target) into here.
José Fonseca [Tue, 6 Apr 2010 21:37:08 +0000 (22:37 +0100)]
gallivm: Move the global LLVM objects (module, engine, provider, target) into here.

14 years agollvmpipe: use a define to decide whether to use draw llvm paths
Zack Rusin [Tue, 6 Apr 2010 21:14:30 +0000 (17:14 -0400)]
llvmpipe: use a define to decide whether to use draw llvm paths

right now disabled by default

14 years agodraw llvm: disable debugging output
Zack Rusin [Tue, 6 Apr 2010 21:14:13 +0000 (17:14 -0400)]
draw llvm: disable debugging output

14 years agodraw llvm: implement simple pipeline caching using variants
Zack Rusin [Tue, 6 Apr 2010 20:28:48 +0000 (16:28 -0400)]
draw llvm: implement simple pipeline caching using variants

14 years agodraw llvm: fix iteration for larger vertex arrays
Zack Rusin [Tue, 6 Apr 2010 16:37:31 +0000 (12:37 -0400)]
draw llvm: fix iteration for larger vertex arrays

we were trying to store the outputs starting at the same offset we
were using for the input arrays, which was writing beyond the end of
the output array.

14 years agodraw llvm: iterate with the correct stop over the outputs
Zack Rusin [Tue, 6 Apr 2010 16:07:33 +0000 (12:07 -0400)]
draw llvm: iterate with the correct stop over the outputs

it's whatever the var step is (4 usually) not an unconditional 1

14 years agoutil: Respect destination stride in pipe_get_tile_swizzle().
Michal Krol [Tue, 6 Apr 2010 15:19:28 +0000 (17:19 +0200)]
util: Respect destination stride in pipe_get_tile_swizzle().

14 years agodraw llvm: fix draw arrays
Zack Rusin [Tue, 6 Apr 2010 15:00:35 +0000 (11:00 -0400)]
draw llvm: fix draw arrays

we don't index within the outputs but only within the inputs

14 years agoutil: Make half float lookup tables constant.
José Fonseca [Sun, 4 Apr 2010 19:43:52 +0000 (20:43 +0100)]
util: Make half float lookup tables constant.

14 years agoutil: Remove the hand written SRGB format support code.
José Fonseca [Sun, 4 Apr 2010 19:14:55 +0000 (20:14 +0100)]
util: Remove the hand written SRGB format support code.

14 years agoutil: Support all SRGB formats.
José Fonseca [Sun, 4 Apr 2010 19:12:02 +0000 (20:12 +0100)]
util: Support all SRGB formats.

Based on code from Brian Paul and Michal Krol.

14 years agoegl_dri2: Flush before context switch and swap buffers.
Chia-I Wu [Tue, 6 Apr 2010 11:52:39 +0000 (19:52 +0800)]
egl_dri2: Flush before context switch and swap buffers.

DRI does not define any callback to flush the current context.  GLX
loader simply calls glFlush.  Follow the GLX loader here.

14 years agost/dri: Implement DRI image extension.
Chia-I Wu [Tue, 6 Apr 2010 10:55:40 +0000 (18:55 +0800)]
st/dri: Implement DRI image extension.

14 years agoprogs/egl: Correctly check GL_OES_EGL_image.
Chia-I Wu [Tue, 6 Apr 2010 10:06:03 +0000 (18:06 +0800)]
progs/egl: Correctly check GL_OES_EGL_image.

The hack was added because GL_OES_EGL_image was not exported in the
extension string.

14 years agomesa: Add OES_EGL_image to extension list.
Chia-I Wu [Tue, 6 Apr 2010 09:46:17 +0000 (17:46 +0800)]
mesa: Add OES_EGL_image to extension list.

14 years agoprogs/egl: Fix the blank window in pbuffer demo.
Chia-I Wu [Tue, 6 Apr 2010 05:24:24 +0000 (13:24 +0800)]
progs/egl: Fix the blank window in pbuffer demo.

EGL requires eglSwapBuffers to be called on the current surface.

14 years agoprogs/egl: Port drawtex and torus to eglut.
Chia-I Wu [Tue, 6 Apr 2010 05:17:56 +0000 (13:17 +0800)]
progs/egl: Port drawtex and torus to eglut.

This brings the demos also to KMS and removes about 400 duplicated lines
of code.

14 years agost/mesa: reformatting
Brian Paul [Tue, 6 Apr 2010 04:04:56 +0000 (22:04 -0600)]
st/mesa: reformatting

14 years agost/mesa: put fragment wpos code into separate function
Brian Paul [Tue, 6 Apr 2010 03:59:05 +0000 (21:59 -0600)]
st/mesa: put fragment wpos code into separate function

14 years agodraw llvm: fix loop iteration and vertex header offsets
Zack Rusin [Tue, 6 Apr 2010 04:13:20 +0000 (00:13 -0400)]
draw llvm: fix loop iteration and vertex header offsets

the loop was doing a NE comparison which we could have skipped if the prim
was triangles (3 verts) and our step was 4 verts. also fix offsets in conversion
to aos.

14 years agoegl: Unbind the old context in _eglBindContext.
Chia-I Wu [Tue, 6 Apr 2010 03:51:25 +0000 (11:51 +0800)]
egl: Unbind the old context in _eglBindContext.

The last commit incorrectly moved the code under an "else".

14 years agoegl: Fix eglMakeCurrent with different surfaces.
Chia-I Wu [Mon, 5 Apr 2010 13:26:34 +0000 (21:26 +0800)]
egl: Fix eglMakeCurrent with different surfaces.

0a82fadcdd0b6ebbc345c7c302da0e0efce40a98 seems to trigger a bug in
_eglBindContext.  Rework the logics yet again.  It is simpler, and
hopefully correct this time.

14 years agost/es: Remove unnedded --whole-archive.
Chia-I Wu [Mon, 5 Apr 2010 10:38:55 +0000 (18:38 +0800)]
st/es: Remove unnedded --whole-archive.

All public functions in the archives are either directly referenced or
indirectly referenced by _glapi_get_proc_address.  There is no need for
--whole-archive.

14 years agoscons: Link expat in dri builds.
Vinson Lee [Tue, 6 Apr 2010 01:13:09 +0000 (18:13 -0700)]
scons: Link expat in dri builds.

Fixes this i915g error.
i915_dri.so: undefined symbol: XML_ParserCreate

14 years agomesa: added Makefile.egl to GALLIUM_FILES
Brian Paul [Mon, 5 Apr 2010 23:33:12 +0000 (17:33 -0600)]
mesa: added Makefile.egl to GALLIUM_FILES

14 years agomesa: add missing file to GALLIUM_FILES
Thierry Vignaud [Mon, 5 Apr 2010 23:31:18 +0000 (17:31 -0600)]
mesa: add missing file to GALLIUM_FILES

Signed-off-by: Brian Paul <brianp@vmware.com>