OSDN Git Service

android-x86/external-mesa.git
16 years agomesa: rework array/struct addressing code.
Brian Paul [Fri, 18 Jul 2008 20:44:01 +0000 (14:44 -0600)]
mesa: rework array/struct addressing code.

The slang_ir_storage type now has a pointer to parent storage to represent
storage of an array element within an array, or a field within a struct.
This fixes some problems related to addressing of fields/elements in non-
trivial cases.  More work to follow.

16 years agomesa: regenerated file
Brian Paul [Fri, 18 Jul 2008 18:53:31 +0000 (12:53 -0600)]
mesa: regenerated file

16 years agomesa: fix some GLSL /= int operators
Brian Paul [Fri, 18 Jul 2008 18:52:24 +0000 (12:52 -0600)]
mesa: fix some GLSL /= int operators

plus add a few more special constructors to improve code quality.

16 years agomesa: fix set_program_uniform_matrix(): need to loop over matrix count
Brian Paul [Fri, 18 Jul 2008 18:51:39 +0000 (12:51 -0600)]
mesa: fix set_program_uniform_matrix(): need to loop over matrix count

16 years agogallium: Add a pf_is_ycbcr utility function.
José Fonseca [Fri, 18 Jul 2008 13:22:22 +0000 (22:22 +0900)]
gallium: Add a pf_is_ycbcr utility function.

16 years agopython/tests: Extend the texture tests to cover volumes.
José Fonseca [Fri, 18 Jul 2008 01:12:07 +0000 (10:12 +0900)]
python/tests: Extend the texture tests to cover volumes.

16 years agopython: Add methods to get texture width, height, etc.
José Fonseca [Fri, 18 Jul 2008 01:11:29 +0000 (10:11 +0900)]
python: Add methods to get texture width, height, etc.

SWIG does a poor job with arrays inside structures.

16 years agotgsi: Express tgsi_sanity in terms of tgsi_iterate.
Michal Krol [Thu, 17 Jul 2008 22:41:45 +0000 (00:41 +0200)]
tgsi: Express tgsi_sanity in terms of tgsi_iterate.

16 years agoscons: List util/tgsi_iterate.c.
Michal Krol [Thu, 17 Jul 2008 22:40:28 +0000 (00:40 +0200)]
scons: List util/tgsi_iterate.c.

16 years agotgsi: Add tgsi_iterate_shader utility.
Michal Krol [Thu, 17 Jul 2008 22:39:23 +0000 (00:39 +0200)]
tgsi: Add tgsi_iterate_shader utility.

Walks the token stream and invokes callbacks.

16 years agotgsi: Fix parsing an instruction with no operands.
Michal Krol [Thu, 17 Jul 2008 18:40:13 +0000 (20:40 +0200)]
tgsi: Fix parsing an instruction with no operands.

16 years agotgsi: Perform a sanity check after reading a shader from text.
Michal Krol [Thu, 17 Jul 2008 18:23:26 +0000 (20:23 +0200)]
tgsi: Perform a sanity check after reading a shader from text.

16 years agoscons: List util/tgsi_sanity.c.
Michal Krol [Thu, 17 Jul 2008 18:22:47 +0000 (20:22 +0200)]
scons: List util/tgsi_sanity.c.

16 years agotgsi: New file.
Michal Krol [Thu, 17 Jul 2008 18:19:40 +0000 (20:19 +0200)]
tgsi: New file.

16 years agopython: Reimplement the generation of random texture samples in C.
José Fonseca [Thu, 17 Jul 2008 16:08:06 +0000 (01:08 +0900)]
python: Reimplement the generation of random texture samples in C.

16 years agogallium: Expose the ability to get a tile outside a surface.
José Fonseca [Thu, 17 Jul 2008 13:54:14 +0000 (22:54 +0900)]
gallium: Expose the ability to get a tile outside a surface.

16 years agogallium: Be less verbose with debug options messages.
José Fonseca [Thu, 17 Jul 2008 02:26:53 +0000 (11:26 +0900)]
gallium: Be less verbose with debug options messages.

16 years agoscons: Set default LIBS env var.
José Fonseca [Thu, 17 Jul 2008 02:25:20 +0000 (11:25 +0900)]
scons: Set default LIBS env var.

16 years agoscons: Convert tabs to spaces.
José Fonseca [Thu, 17 Jul 2008 02:23:43 +0000 (11:23 +0900)]
scons: Convert tabs to spaces.

16 years agopython: Reimplement tile comparison in C to speed up tests.
José Fonseca [Thu, 17 Jul 2008 01:27:10 +0000 (10:27 +0900)]
python: Reimplement tile comparison in C to speed up tests.

16 years agomesa: regenerated file
Brian Paul [Thu, 17 Jul 2008 16:03:25 +0000 (10:03 -0600)]
mesa: regenerated file

16 years agomesa: fix/improve the atan(y,x) function
Brian Paul [Thu, 17 Jul 2008 16:03:10 +0000 (10:03 -0600)]
mesa: fix/improve the atan(y,x) function

16 years agomesa: added checks for OpenBSD
Brad Smith [Thu, 17 Jul 2008 14:16:19 +0000 (08:16 -0600)]
mesa: added checks for OpenBSD

16 years agopython/tests: Cover all last_level combinations.
José Fonseca [Wed, 16 Jul 2008 23:21:58 +0000 (08:21 +0900)]
python/tests: Cover all last_level combinations.

16 years agomesa: WinCE fixes
Jonathan White [Wed, 16 Jul 2008 22:10:57 +0000 (16:10 -0600)]
mesa: WinCE fixes

16 years agomesa: fix temp re-use bug in emit_arith()
Brian Paul [Wed, 16 Jul 2008 22:04:43 +0000 (16:04 -0600)]
mesa: fix temp re-use bug in emit_arith()

16 years agomesa: regenerated files
Brian Paul [Wed, 16 Jul 2008 20:48:21 +0000 (14:48 -0600)]
mesa: regenerated files

16 years agomesa: fix copy&paste errors in degrees() functions
Brian Paul [Wed, 16 Jul 2008 20:47:21 +0000 (14:47 -0600)]
mesa: fix copy&paste errors in degrees() functions

16 years agomesa: implement grammar/parsing for precision/invariant syntax
Brian Paul [Wed, 16 Jul 2008 20:27:50 +0000 (14:27 -0600)]
mesa: implement grammar/parsing for precision/invariant syntax

Plus, fix some issues with pre-defined preprocessor symbols and version checking.

16 years agomesa: Silence compiler warnings on Windows.
Michal Krol [Wed, 16 Jul 2008 18:14:42 +0000 (20:14 +0200)]
mesa: Silence compiler warnings on Windows.

16 years agoegl: set EGL_SAMPLES, EGL_SAMPLE_BUFFERS config attribs
Brian Paul [Wed, 16 Jul 2008 16:34:50 +0000 (10:34 -0600)]
egl: set EGL_SAMPLES, EGL_SAMPLE_BUFFERS config attribs

16 years agomesa: add GL_POLYGON_OFFSET_POINT/LINE/FILL queries, remove GL_TEXTURE_ENV_COLOR...
Brian Paul [Wed, 16 Jul 2008 16:23:28 +0000 (10:23 -0600)]
mesa: add GL_POLYGON_OFFSET_POINT/LINE/FILL queries, remove GL_TEXTURE_ENV_COLOR, GL_TEXTURE_ENV_MODE

Issues found by Bob Ellison.

16 years agopython/tests: Extend the texture tests to cover cube maps.
José Fonseca [Wed, 16 Jul 2008 14:27:15 +0000 (23:27 +0900)]
python/tests: Extend the texture tests to cover cube maps.

16 years agopython: Set PIPE_TEX_MIPFILTER_NONE by default.
José Fonseca [Wed, 16 Jul 2008 14:26:23 +0000 (23:26 +0900)]
python: Set PIPE_TEX_MIPFILTER_NONE by default.

16 years agopython: Test all miplevels.
José Fonseca [Wed, 16 Jul 2008 10:36:59 +0000 (19:36 +0900)]
python: Test all miplevels.

16 years agogallium: ycbcr_get_tile_rgba allow reading an uneven number of pixels from yuv surfaces.
José Fonseca [Wed, 16 Jul 2008 10:36:36 +0000 (19:36 +0900)]
gallium: ycbcr_get_tile_rgba allow reading an uneven number of pixels from yuv surfaces.

16 years agopython: Expand the texture test suit to cover one YUV and one DXT format.
José Fonseca [Wed, 16 Jul 2008 05:11:45 +0000 (14:11 +0900)]
python: Expand the texture test suit to cover one YUV and one DXT format.

16 years agopython: Silent debug output.
José Fonseca [Wed, 16 Jul 2008 05:10:51 +0000 (14:10 +0900)]
python: Silent debug output.

16 years agogallium: Add pf_is_compressed utility function.
José Fonseca [Wed, 16 Jul 2008 05:10:35 +0000 (14:10 +0900)]
gallium: Add pf_is_compressed utility function.

16 years agosoftpipe: DXT formats not really supported.
José Fonseca [Wed, 16 Jul 2008 05:10:10 +0000 (14:10 +0900)]
softpipe: DXT formats not really supported.

16 years agoadditional preprocessor checks for stdint.h, inttypes.h, etc
Blair Sadewitz [Tue, 15 Jul 2008 23:21:43 +0000 (17:21 -0600)]
additional preprocessor checks for stdint.h, inttypes.h, etc

The patches to glext.h and glxext.h have been sent to Khronos/bugzilla.

16 years agomesa: added test for __NetBSD__
Blair Sadewitz [Tue, 15 Jul 2008 23:12:23 +0000 (17:12 -0600)]
mesa: added test for __NetBSD__

16 years agomesa: added test for __NetBSD__
Blair Sadewitz [Tue, 15 Jul 2008 23:11:33 +0000 (17:11 -0600)]
mesa: added test for __NetBSD__

16 years agomesa: add missing IR_LOG2 case
Brian Paul [Tue, 15 Jul 2008 22:04:26 +0000 (16:04 -0600)]
mesa: add missing IR_LOG2 case

16 years agomesa: regenerated file
Brian Paul [Tue, 15 Jul 2008 21:33:04 +0000 (15:33 -0600)]
mesa: regenerated file

16 years agomesa: fix some broken /= operators
Brian Paul [Tue, 15 Jul 2008 21:32:53 +0000 (15:32 -0600)]
mesa: fix some broken /= operators

16 years agomesa: regenerated file
Brian Paul [Tue, 15 Jul 2008 21:04:15 +0000 (15:04 -0600)]
mesa: regenerated file

16 years agomesa: fix some broken bool, bvec2, bvec3, bvec4 constructors
Brian Paul [Tue, 15 Jul 2008 21:03:42 +0000 (15:03 -0600)]
mesa: fix some broken bool, bvec2, bvec3, bvec4 constructors

16 years agomesa: fix storage size computation in emit_arith()
Brian Paul [Tue, 15 Jul 2008 20:41:47 +0000 (14:41 -0600)]
mesa: fix storage size computation in emit_arith()

16 years agogallium: added some sanity check assertions
Brian Paul [Tue, 15 Jul 2008 19:27:44 +0000 (13:27 -0600)]
gallium: added some sanity check assertions

16 years agomesa: fix some function inlining bugs
Brian Paul [Tue, 15 Jul 2008 19:25:57 +0000 (13:25 -0600)]
mesa: fix some function inlining bugs

Need to add local vars of original function to the new scope's variable
list (though the DECLs were already present).
In slang_operation_copy() call slang_replace_scope() for SLANG_OPER_BLOCK_NEW_SCOPE opers.

16 years agomesa: improved printing
Brian Paul [Tue, 15 Jul 2008 19:11:08 +0000 (13:11 -0600)]
mesa: improved printing

16 years agomesa: Silence compiler warnings on Windows.
Michal Krol [Tue, 15 Jul 2008 09:44:47 +0000 (11:44 +0200)]
mesa: Silence compiler warnings on Windows.

16 years agost: Silence compiler warnings on Windows.
Michal Krol [Tue, 15 Jul 2008 09:26:38 +0000 (11:26 +0200)]
st: Silence compiler warnings on Windows.

16 years agomesa: Silence compiler warnings on Windows.
Michal Krol [Tue, 15 Jul 2008 09:15:27 +0000 (11:15 +0200)]
mesa: Silence compiler warnings on Windows.

16 years agopython: Cleanup.
José Fonseca [Tue, 15 Jul 2008 08:57:48 +0000 (17:57 +0900)]
python: Cleanup.

16 years agopython: Request/respect the texture & buffer usage flags in the examples.
José Fonseca [Tue, 15 Jul 2008 08:14:07 +0000 (17:14 +0900)]
python: Request/respect the texture & buffer usage flags in the examples.

16 years agopython: Get object ownership done correctly.
José Fonseca [Tue, 15 Jul 2008 08:13:37 +0000 (17:13 +0900)]
python: Get object ownership done correctly.

16 years agopython: Don't use python cflags as they conflict with existing flags.
José Fonseca [Tue, 15 Jul 2008 03:17:35 +0000 (12:17 +0900)]
python: Don't use python cflags as they conflict with existing flags.

16 years agopython: Allow hardware support.
José Fonseca [Mon, 14 Jul 2008 23:42:16 +0000 (08:42 +0900)]
python: Allow hardware support.

16 years agopython: Move the python scons code to a separate tool module.
José Fonseca [Mon, 14 Jul 2008 22:56:42 +0000 (07:56 +0900)]
python: Move the python scons code to a separate tool module.

16 years agopython: Get it to build on windows too.
José Fonseca [Mon, 14 Jul 2008 15:33:54 +0000 (00:33 +0900)]
python: Get it to build on windows too.

16 years agotgsi: Numerical label before an instruction is optional.
Michal Krol [Tue, 15 Jul 2008 08:56:30 +0000 (10:56 +0200)]
tgsi: Numerical label before an instruction is optional.

16 years agotgsi: fix bug in execution of loops inside of conditionals.
Brian Paul [Tue, 15 Jul 2008 00:08:52 +0000 (18:08 -0600)]
tgsi: fix bug in execution of loops inside of conditionals.

Fixes infinite loop bug.

16 years agomesa: assemble main() after all other functions
Brian Paul [Mon, 14 Jul 2008 21:58:57 +0000 (15:58 -0600)]
mesa: assemble main() after all other functions

Before, main() had to come after any functions it called.

16 years agomesa: comments about vectors vs components
Brian Paul [Mon, 14 Jul 2008 17:20:58 +0000 (11:20 -0600)]
mesa: comments about vectors vs components

16 years agoegl: set EGL_CONFORMANT, EGL_RENDERABLE_TYPE config fields, fix null ptr crashes...
Brian Paul [Mon, 14 Jul 2008 18:09:07 +0000 (12:09 -0600)]
egl: set EGL_CONFORMANT, EGL_RENDERABLE_TYPE config fields, fix null ptr crashes in MakeCurrent

16 years agomesa: fix stencil state problem when GL_ATI_separate_stencil wasn't enabled
Brian Paul [Mon, 14 Jul 2008 15:55:33 +0000 (09:55 -0600)]
mesa: fix stencil state problem when GL_ATI_separate_stencil wasn't enabled

In glStencilFunc/Op/Mask() set both the front and back-face state, unless
GL_EXT_stencil_two_side is enabled.  Before, we only set the front+back state
if GL_ATI_separate_stencil was enabled.

Ultimately, we probably should remove GL_EXT_stencil_two_side since it's
incompatible with GL 2.x.

16 years agoglu: only export public symbols
Julien Cristau [Sun, 13 Jul 2008 15:27:58 +0000 (17:27 +0200)]
glu: only export public symbols

16 years agomklib: don't version symbols when using --exports
Julien Cristau [Sun, 13 Jul 2008 15:13:32 +0000 (17:13 +0200)]
mklib: don't version symbols when using --exports

Use the default version instead of one based on the library SONAME
in the version script created by --exports.

16 years agomesa: also check for __NetBSD__
Blair Sadewitz [Mon, 14 Jul 2008 14:16:46 +0000 (08:16 -0600)]
mesa: also check for __NetBSD__

16 years agopython: Basic test case for 2d texture.
José Fonseca [Mon, 14 Jul 2008 13:27:40 +0000 (22:27 +0900)]
python: Basic test case for 2d texture.

16 years agopython: Raw tile access to surface.
José Fonseca [Mon, 14 Jul 2008 13:26:40 +0000 (22:26 +0900)]
python: Raw tile access to surface.

16 years agopython: Get the sample app to draw triangle like trivial/tri exanple.
José Fonseca [Mon, 14 Jul 2008 03:40:50 +0000 (12:40 +0900)]
python: Get the sample app to draw triangle like trivial/tri exanple.

16 years agopython: Surface clears.
José Fonseca [Mon, 14 Jul 2008 02:44:21 +0000 (11:44 +0900)]
python: Surface clears.

16 years agopython: Set default state.
José Fonseca [Mon, 14 Jul 2008 02:38:44 +0000 (11:38 +0900)]
python: Set default state.

16 years agopython: Allow to create/specify shaders.
José Fonseca [Mon, 14 Jul 2008 01:45:40 +0000 (10:45 +0900)]
python: Allow to create/specify shaders.

16 years agoi915: Ops should not have pushed that
Jakob Bornecrantz [Sun, 13 Jul 2008 16:55:38 +0000 (18:55 +0200)]
i915: Ops should not have pushed that

This reverts commit 930a863c4f6f11d0fd5cf396ef76054d52c69b9f.

16 years agoEGL: Only build EGL dri based drivers under linux-dri based configs
Jakob Bornecrantz [Sun, 13 Jul 2008 16:04:49 +0000 (18:04 +0200)]
EGL: Only build EGL dri based drivers under linux-dri based configs

16 years agoi915: WIP swap rework
Jakob Bornecrantz [Thu, 10 Jul 2008 18:20:46 +0000 (20:20 +0200)]
i915: WIP swap rework

16 years agopython: New state tracker which exposes the pipe driver to python scripts.
José Fonseca [Sun, 13 Jul 2008 14:36:59 +0000 (23:36 +0900)]
python: New state tracker which exposes the pipe driver to python scripts.

Still under development. Just barely works.

16 years agoutil: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.
José Fonseca [Sun, 13 Jul 2008 13:39:58 +0000 (22:39 +0900)]
util: Eliminate pipe from the arguments to pipe_get/put_tile_xxx functions.

You don't need a pipe_context * for this, and all other necessary info is
already inside pipe_surface.

16 years agopb: buffer over/underflows are errors.
José Fonseca [Sun, 13 Jul 2008 13:37:47 +0000 (22:37 +0900)]
pb: buffer over/underflows are errors.

16 years agotgsi: Parse destination operand modulate modifier.
Michal Krol [Sun, 13 Jul 2008 13:23:14 +0000 (15:23 +0200)]
tgsi: Parse destination operand modulate modifier.

16 years agotgsi: Parse extended source register modifiers.
Michal Krol [Sun, 13 Jul 2008 13:14:31 +0000 (15:14 +0200)]
tgsi: Parse extended source register modifiers.

16 years agotgsi: Parse _SAT and _SAT opcode suffix.
Michal Krol [Sun, 13 Jul 2008 12:50:12 +0000 (14:50 +0200)]
tgsi: Parse _SAT and _SAT opcode suffix.

16 years agotgsi: Parse IMM statements.
Michal Krol [Sun, 13 Jul 2008 12:03:21 +0000 (14:03 +0200)]
tgsi: Parse IMM statements.

16 years agotgsi: Parse texture instructions correctly.
Michal Krol [Sun, 13 Jul 2008 11:13:39 +0000 (13:13 +0200)]
tgsi: Parse texture instructions correctly.

16 years agotgsi: Fix instruction operand counts.
Michal Krol [Sun, 13 Jul 2008 10:16:16 +0000 (12:16 +0200)]
tgsi: Fix instruction operand counts.

16 years agotgsi: Fix instruction opcode parsing.
Michal Krol [Sun, 13 Jul 2008 09:43:30 +0000 (11:43 +0200)]
tgsi: Fix instruction opcode parsing.

16 years agotgsi: Add missing SWZ opcode.
Michal Krol [Sun, 13 Jul 2008 09:42:33 +0000 (11:42 +0200)]
tgsi: Add missing SWZ opcode.

16 years agotgsi: Parse DCL statements.
Michal Krol [Sun, 13 Jul 2008 09:37:36 +0000 (11:37 +0200)]
tgsi: Parse DCL statements.

16 years agotgsi: Remove depricated ATTRIB interpolate mode.
Michal Krol [Sun, 13 Jul 2008 09:30:02 +0000 (11:30 +0200)]
tgsi: Remove depricated ATTRIB interpolate mode.

16 years agollvm: build fixes.
Stephane Marchesin [Sun, 13 Jul 2008 09:33:41 +0000 (11:33 +0200)]
llvm: build fixes.

16 years agoscons: List `util/tgsi_text.c'.
Michal Krol [Sat, 12 Jul 2008 15:10:21 +0000 (17:10 +0200)]
scons: List `util/tgsi_text.c'.

16 years agotgsi: Add tgsi_text utility module.
Michal Krol [Sat, 12 Jul 2008 15:06:37 +0000 (17:06 +0200)]
tgsi: Add tgsi_text utility module.

Translates textual shader into a binary token stream.
The syntax matches the tgsi_dump module, so it's possible to
simply copy-paste the shader dump and transform it back
to a binary form.

16 years agotgsi: Fix dumping of indirect addressing.
Michal Krol [Sat, 12 Jul 2008 15:03:30 +0000 (17:03 +0200)]
tgsi: Fix dumping of indirect addressing.

16 years agotgsi: Add missing copyright headers.
Michal Krol [Sat, 12 Jul 2008 09:16:01 +0000 (11:16 +0200)]
tgsi: Add missing copyright headers.

16 years agoegl: a minor overhauld of egl_xdri.c
Brian Paul [Fri, 11 Jul 2008 21:44:46 +0000 (15:44 -0600)]
egl: a minor overhauld of egl_xdri.c

Rely more on the libGL code to avoid duplicated efforts.  Also fix confusion
arising from multiple __DRIscreen objects.

16 years agoglx: added __glXPreferEGL() to tell libGL to prefer "egl_" drivers over regular DRI...
Brian Paul [Fri, 11 Jul 2008 21:43:52 +0000 (15:43 -0600)]
glx: added __glXPreferEGL() to tell libGL to prefer "egl_" drivers over regular DRI drivers.

Also, clean-up, consolidate the dlopen() code a bit.