mesa.git
16 years agomesa: fix ReadBuffer initialization
Brian Paul [Wed, 18 Jun 2008 15:30:13 +0000 (09:30 -0600)]
mesa: fix ReadBuffer initialization

16 years agoegl: use RTLD_LAZY
Brian Paul [Wed, 18 Jun 2008 15:21:28 +0000 (09:21 -0600)]
egl: use RTLD_LAZY

16 years agoegl: omit libmesa.a glapi.c from library
Brian Paul [Wed, 18 Jun 2008 15:21:09 +0000 (09:21 -0600)]
egl: omit libmesa.a glapi.c from library

16 years agogallium: remove duplicated u_mm.c in file list
Brian Paul [Tue, 17 Jun 2008 22:58:22 +0000 (16:58 -0600)]
gallium: remove duplicated u_mm.c in file list

16 years agogallium: more FEATURE_x tests
Brian Paul [Tue, 17 Jun 2008 22:57:02 +0000 (16:57 -0600)]
gallium: more FEATURE_x tests

16 years agomesa: FEATURE_dispatch to control dispatch table usage
Brian Paul [Tue, 17 Jun 2008 22:56:32 +0000 (16:56 -0600)]
mesa: FEATURE_dispatch to control dispatch table usage

16 years agoegl: call st_get_proc_address()
Brian Paul [Tue, 17 Jun 2008 20:28:07 +0000 (14:28 -0600)]
egl: call st_get_proc_address()

16 years agogallium: added st_get_proc_address()
Brian Paul [Tue, 17 Jun 2008 20:27:36 +0000 (14:27 -0600)]
gallium: added st_get_proc_address()

16 years agomesa: refactor: move GetProcAddress code from glapi.c into new glapi_getproc.c file
Brian Paul [Tue, 17 Jun 2008 19:23:32 +0000 (13:23 -0600)]
mesa: refactor: move GetProcAddress code from glapi.c into new glapi_getproc.c file

16 years agogallium: added FEATURE_x tests
Brian Paul [Tue, 17 Jun 2008 19:13:34 +0000 (13:13 -0600)]
gallium: added FEATURE_x tests

16 years agomesa: s/GL_POLYGON+1/PRIM_OUTSIDE_BEGIN_END/
Brian Paul [Tue, 17 Jun 2008 17:31:45 +0000 (11:31 -0600)]
mesa: s/GL_POLYGON+1/PRIM_OUTSIDE_BEGIN_END/

16 years agomesa: add parenthesis
Brian Paul [Tue, 17 Jun 2008 17:29:59 +0000 (11:29 -0600)]
mesa: add parenthesis

16 years agomesa: _mesa_texstore_s8_z24 now supports depth only uploads
Jakob Bornecrantz [Wed, 18 Jun 2008 09:38:12 +0000 (11:38 +0200)]
mesa: _mesa_texstore_s8_z24 now supports depth only uploads

16 years agogallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition.
Michal Krol [Wed, 18 Jun 2008 06:51:38 +0000 (08:51 +0200)]
gallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition.

16 years agoi915: Fix for s8_z24 textures not being shown
Jakob Bornecrantz [Tue, 17 Jun 2008 23:45:21 +0000 (01:45 +0200)]
i915: Fix for s8_z24 textures not being shown

16 years agomesa: Added _mesa_texstore_s8_z24
Jakob Bornecrantz [Tue, 17 Jun 2008 23:39:46 +0000 (01:39 +0200)]
mesa: Added _mesa_texstore_s8_z24

16 years agomesa: fix inconsistent use of GL_UNSIGNED_INT vs. GL_UNSIGNED_INT_24_8_EXT for Z...
Brian Paul [Tue, 17 Jun 2008 22:43:48 +0000 (16:43 -0600)]
mesa: fix inconsistent use of GL_UNSIGNED_INT vs. GL_UNSIGNED_INT_24_8_EXT for Z unpacking

16 years agogallium: Add facilities for mixed pipe formats.
Michal Krol [Tue, 17 Jun 2008 19:43:41 +0000 (21:43 +0200)]
gallium: Add facilities for mixed pipe formats.

16 years agogallium: need to flush bitmap cache when raster color changes
Brian Paul [Tue, 17 Jun 2008 18:20:22 +0000 (12:20 -0600)]
gallium: need to flush bitmap cache when raster color changes

16 years agogallium: check if sampler->max_lod < sampler->min_lod
Brian Paul [Tue, 17 Jun 2008 16:28:00 +0000 (10:28 -0600)]
gallium: check if sampler->max_lod < sampler->min_lod

16 years agomesa: make mm.c use unsigned ints for offsets.
Brian Paul [Tue, 17 Jun 2008 16:11:53 +0000 (10:11 -0600)]
mesa: make mm.c use unsigned ints for offsets.

If you have a GPU using this code and it has the offsets up in this space,
this fails.

cherry-picked from master

16 years agoi915: Made region pool a slabpool
Jakob Bornecrantz [Tue, 17 Jun 2008 15:46:45 +0000 (17:46 +0200)]
i915: Made region pool a slabpool

16 years agoi915: Max and Min lod now works
Jakob Bornecrantz [Tue, 17 Jun 2008 13:47:01 +0000 (15:47 +0200)]
i915: Max and Min lod now works

16 years agoadded ARCH_FLAGS
seventh guardian [Mon, 16 Jun 2008 21:10:14 +0000 (15:10 -0600)]
added ARCH_FLAGS

16 years agogit: Updated .gitignore files
Jakob Bornecrantz [Mon, 16 Jun 2008 10:20:17 +0000 (12:20 +0200)]
git: Updated .gitignore files

16 years agoutil: Use pf_get_size().
Michal Krol [Fri, 13 Jun 2008 15:22:11 +0000 (17:22 +0200)]
util: Use pf_get_size().

16 years agomesa: move some glapi bits around
Brian Paul [Fri, 13 Jun 2008 22:45:15 +0000 (16:45 -0600)]
mesa: move some glapi bits around

Move _glapi_proc typedef from glapitable.h to glapi.h
Also, don't include glapitable.h from glapi.h
Before we were including the huge glapitable.h file in every .c file.

16 years agomesa: remove some temp debug code
Brian Paul [Fri, 13 Jun 2008 20:13:25 +0000 (14:13 -0600)]
mesa: remove some temp debug code

16 years agomesa: check FEATURE_ARB_occlusion_query
Brian Paul [Fri, 13 Jun 2008 19:56:53 +0000 (13:56 -0600)]
mesa: check FEATURE_ARB_occlusion_query

16 years agoegl: added a debug msg
Brian Paul [Fri, 13 Jun 2008 19:56:31 +0000 (13:56 -0600)]
egl: added a debug msg

16 years agoi915: Improved the not used tile code
Jakob Bornecrantz [Fri, 13 Jun 2008 18:46:14 +0000 (20:46 +0200)]
i915: Improved the not used tile code

16 years agotrivial: Update clear-undefined
Jakob Bornecrantz [Fri, 13 Jun 2008 17:18:56 +0000 (19:18 +0200)]
trivial: Update clear-undefined

16 years agomesa: Fix libglapi.a build for dri
Jakob Bornecrantz [Fri, 13 Jun 2008 17:13:35 +0000 (19:13 +0200)]
mesa: Fix libglapi.a build for dri

16 years agoi915: Fix offsets not being used for surface targets
Jakob Bornecrantz [Fri, 13 Jun 2008 17:07:29 +0000 (19:07 +0200)]
i915: Fix offsets not being used for surface targets

16 years agoi915: Fix most of the clear problems
Jakob Bornecrantz [Fri, 13 Jun 2008 17:03:51 +0000 (19:03 +0200)]
i915: Fix most of the clear problems
trivial/clear-undefined still fails

16 years agotrival: Added test for undefined context of buffer
Jakob Bornecrantz [Fri, 13 Jun 2008 15:42:44 +0000 (17:42 +0200)]
trival: Added test for undefined context of buffer

16 years agogallium: another attempt at fixing libglapi.a compilation for DRI builds
Brian Paul [Fri, 13 Jun 2008 15:15:07 +0000 (09:15 -0600)]
gallium: another attempt at fixing libglapi.a compilation for DRI builds

If building for DRI, make a dummy/empty libglapi.a for now.

16 years agomesa: fix typo: s/stacks/stack/
Brian Paul [Fri, 13 Jun 2008 15:10:09 +0000 (09:10 -0600)]
mesa: fix typo: s/stacks/stack/

16 years agogallium: Fix PIPE_FORMAT_A2B10G10R10_UNORM definition.
Michal Krol [Fri, 13 Jun 2008 13:21:11 +0000 (15:21 +0200)]
gallium: Fix PIPE_FORMAT_A2B10G10R10_UNORM definition.

Whoops!

16 years agogallium: Add PIPE_FORMAT_A2B10G10R10_UNORM.
Michal Krol [Fri, 13 Jun 2008 12:58:24 +0000 (14:58 +0200)]
gallium: Add PIPE_FORMAT_A2B10G10R10_UNORM.

16 years agogallium: Allow pipe format component sizes to be specified
Michal Krol [Fri, 13 Jun 2008 12:50:29 +0000 (14:50 +0200)]
gallium: Allow pipe format component sizes to be specified
with finer granularity.

This will allow us to define A2R10G10B10 format.

16 years agomesa: Remove duplicate code.
Michal Krol [Fri, 13 Jun 2008 12:49:04 +0000 (14:49 +0200)]
mesa: Remove duplicate code.

16 years agoi915: Messed up lineloop now works
Jakob Bornecrantz [Fri, 13 Jun 2008 12:11:20 +0000 (14:11 +0200)]
i915: Messed up lineloop now works

16 years agoi915: Support all primtive types in vbuf path
Jakob Bornecrantz [Fri, 13 Jun 2008 10:21:58 +0000 (12:21 +0200)]
i915: Support all primtive types in vbuf path

16 years agosilly bug: it's PROGRAM_VARYING
Zack Rusin [Thu, 12 Jun 2008 23:41:54 +0000 (19:41 -0400)]
silly bug: it's PROGRAM_VARYING

16 years agoglsl: make sure we replace all output reads with temporaries
Zack Rusin [Thu, 12 Jun 2008 22:53:52 +0000 (18:53 -0400)]
glsl: make sure we replace all output reads with temporaries

test in if.glsl

16 years agomesa: add some #if FEATURE_x tests
Brian Paul [Thu, 12 Jun 2008 22:55:28 +0000 (16:55 -0600)]
mesa: add some #if FEATURE_x tests

16 years agogallium: add some #if FEATURE_x tests
Brian Paul [Thu, 12 Jun 2008 22:54:44 +0000 (16:54 -0600)]
gallium: add some #if FEATURE_x tests

16 years agomesa: remove unneeded #include
Brian Paul [Thu, 12 Jun 2008 22:48:24 +0000 (16:48 -0600)]
mesa: remove unneeded #include

16 years agogallium: add missing comma
Brian Paul [Thu, 12 Jun 2008 22:37:16 +0000 (16:37 -0600)]
gallium: add missing comma

16 years agogallium: disable the codegen for TGSI_OPCODE_EXPBASE2 for now.
Brian Paul [Thu, 12 Jun 2008 22:01:43 +0000 (16:01 -0600)]
gallium: disable the codegen for TGSI_OPCODE_EXPBASE2 for now.

The x86 code seems to fail for exponents of 4 or larger.
See glean's vertProg1/EX2 test.

16 years agogallium: fix SSE codegen for instructions that use both a CONSTANT and IMMEDIATE
Keith Whitwell [Thu, 12 Jun 2008 22:01:05 +0000 (16:01 -0600)]
gallium: fix SSE codegen for instructions that use both a CONSTANT and IMMEDIATE

Fixes codegen for instructions like MUL dst, CONST[0], IMM[0];  the two operands
would up getting aliased in the x86/sse code.

Fixes glean/vertProg1/fogparams test.

16 years agogallium: test for FEATURE_convolution
Brian Paul [Thu, 12 Jun 2008 21:46:10 +0000 (15:46 -0600)]
gallium: test for FEATURE_convolution

16 years agogallium: remove unused/old st_atom_fixedfunction.c file
Brian Paul [Thu, 12 Jun 2008 21:08:14 +0000 (15:08 -0600)]
gallium: remove unused/old st_atom_fixedfunction.c file

16 years agoalmost forgot - RelAddr is a boolean so use it here
Zack Rusin [Thu, 12 Jun 2008 18:19:10 +0000 (14:19 -0400)]
almost forgot - RelAddr is a boolean so use it here

16 years agoadd some glsl example testing different arrays of uniforms
Zack Rusin [Thu, 12 Jun 2008 04:04:30 +0000 (00:04 -0400)]
add some glsl example testing different arrays of uniforms

16 years agoshaders: fix allocation of arrays of parameters
Zack Rusin [Thu, 12 Jun 2008 04:03:35 +0000 (00:03 -0400)]
shaders: fix allocation of arrays of parameters

16 years agoglsl: implement variable array indexes
Zack Rusin [Tue, 10 Jun 2008 20:59:44 +0000 (16:59 -0400)]
glsl: implement variable array indexes

16 years agomesa: restore and fix Keith's "further degenerate the special case lit substitute"
Brian Paul [Thu, 12 Jun 2008 17:17:20 +0000 (11:17 -0600)]
mesa: restore and fix Keith's "further degenerate the special case lit substitute"

There was a bug in emit_degenerate_lit() that caused the SLT to produce
unpredictable results in lit.z

Plus, added a bunch of new comments.

16 years agopb: don't assert(0) on failure to allocate - this is a normal condition in many drivers
Keith Whitwell [Thu, 12 Jun 2008 13:39:57 +0000 (14:39 +0100)]
pb: don't assert(0) on failure to allocate - this is a normal condition in many drivers

16 years agoRevert "mesa: further degenerate the special case lit substitute"
Brian Paul [Thu, 12 Jun 2008 02:50:26 +0000 (20:50 -0600)]
Revert "mesa: further degenerate the special case lit substitute"

This reverts commit e841b92d9c8bf48085b4996df828ae745977f931.

This fixes two specular lighting conform failures.

16 years agomesa: refactor: update SConscript with recently added new source files
Brian Paul [Thu, 12 Jun 2008 02:16:16 +0000 (20:16 -0600)]
mesa: refactor: update SConscript with recently added new source files

16 years agomesa: refactor: move various ENUM_TO_x macros into macros.h
Brian Paul [Thu, 12 Jun 2008 02:13:07 +0000 (20:13 -0600)]
mesa: refactor: move various ENUM_TO_x macros into macros.h

16 years agomesa: refactor: move glTexParameter-related functions into new texparam.c file
Brian Paul [Thu, 12 Jun 2008 02:05:53 +0000 (20:05 -0600)]
mesa: refactor: move glTexParameter-related functions into new texparam.c file

16 years agomesa: refactor: move glTexEnv-related functions into new texenv.c file
Brian Paul [Thu, 12 Jun 2008 01:58:30 +0000 (19:58 -0600)]
mesa: refactor: move glTexEnv-related functions into new texenv.c file

16 years agomesa: refactor: move glTexGen-related functions into new texgen.c file
Brian Paul [Thu, 12 Jun 2008 01:48:01 +0000 (19:48 -0600)]
mesa: refactor: move glTexGen-related functions into new texgen.c file

16 years agogallium: Support L16 pixel format.
José Fonseca [Wed, 11 Jun 2008 03:25:47 +0000 (12:25 +0900)]
gallium: Support L16 pixel format.

16 years agopipebuffer: Fix improper memory free.
José Fonseca [Wed, 11 Jun 2008 01:33:41 +0000 (10:33 +0900)]
pipebuffer: Fix improper memory free.

16 years agogallium: Implement debug_get_num_option.
José Fonseca [Tue, 10 Jun 2008 14:22:12 +0000 (23:22 +0900)]
gallium: Implement debug_get_num_option.

For numeric options.

16 years agoegl: some basic docs for libEGL
Brian Paul [Thu, 12 Jun 2008 01:35:52 +0000 (19:35 -0600)]
egl: some basic docs for libEGL

16 years agoegl: some prototype Windows code (eq for dlopen,dlsym)
Brian Paul [Wed, 11 Jun 2008 17:37:46 +0000 (11:37 -0600)]
egl: some prototype Windows code (eq for dlopen,dlsym)

16 years agorevert the DRI2 commits
Alan Hourihane [Wed, 11 Jun 2008 23:11:54 +0000 (00:11 +0100)]
revert the DRI2 commits

16 years agodraw: don't assume vertex position is in data[0]
Keith Whitwell [Wed, 11 Jun 2008 22:48:13 +0000 (23:48 +0100)]
draw: don't assume vertex position is in data[0]

16 years agodraw: preserve specular alpha when flatshading -- may be FOGC
Keith Whitwell [Wed, 11 Jun 2008 17:46:26 +0000 (18:46 +0100)]
draw: preserve specular alpha when flatshading -- may be FOGC

16 years agofix card_extensions
Alan Hourihane [Wed, 11 Jun 2008 14:50:07 +0000 (15:50 +0100)]
fix card_extensions

16 years agofix legacy DRI
Alan Hourihane [Wed, 11 Jun 2008 14:35:12 +0000 (15:35 +0100)]
fix legacy DRI

16 years agoadd missed files for DRI2 merge
Alan Hourihane [Wed, 11 Jun 2008 14:25:35 +0000 (15:25 +0100)]
add missed files for DRI2 merge

16 years agoHook gallium i915 up to DRI2
Alan Hourihane [Wed, 11 Jun 2008 13:52:55 +0000 (14:52 +0100)]
Hook gallium i915 up to DRI2

16 years agosmall optimization
Alan Hourihane [Wed, 11 Jun 2008 13:51:41 +0000 (14:51 +0100)]
small optimization

16 years agoBring in DRI2 changes
Alan Hourihane [Tue, 10 Jun 2008 19:17:16 +0000 (20:17 +0100)]
Bring in DRI2 changes

16 years agodraw: remove another debug assert on failover to generic vs varient
Keith Whitwell [Wed, 11 Jun 2008 08:36:00 +0000 (09:36 +0100)]
draw: remove another debug assert on failover to generic vs varient

16 years agotrivial: add test for integer vertex arrays
Keith Whitwell [Wed, 11 Jun 2008 08:18:42 +0000 (09:18 +0100)]
trivial: add test for integer vertex arrays

16 years agodraw: remove debug assert on failover to generic vs varient
Keith Whitwell [Wed, 11 Jun 2008 08:15:54 +0000 (09:15 +0100)]
draw: remove debug assert on failover to generic vs varient

16 years agomesa: refactor: fix some FEATURE_ typos, mistakes
Brian Paul [Tue, 10 Jun 2008 22:43:49 +0000 (16:43 -0600)]
mesa: refactor: fix some FEATURE_ typos, mistakes

16 years agogallium: work-around glapi.c build problem for dri configs
Brian Paul [Tue, 10 Jun 2008 22:26:23 +0000 (16:26 -0600)]
gallium: work-around glapi.c build problem for dri configs

16 years agoegl: only windows are renderable at this time
Brian Paul [Tue, 10 Jun 2008 22:14:35 +0000 (16:14 -0600)]
egl: only windows are renderable at this time

16 years agoegl: some prototype API detection code
Brian Paul [Tue, 10 Jun 2008 22:14:09 +0000 (16:14 -0600)]
egl: some prototype API detection code

16 years agomesa: refactor: move #define FEATURE flags into new mfeatures.h file
Brian Paul [Tue, 10 Jun 2008 22:13:42 +0000 (16:13 -0600)]
mesa: refactor: move #define FEATURE flags into new mfeatures.h file

Also, check the FEATURE flags in many places.

16 years agomesa: include mtypes.h
Brian Paul [Tue, 10 Jun 2008 21:23:51 +0000 (15:23 -0600)]
mesa: include mtypes.h

16 years agomesa: remove unnecessary swrast, tnl includes
Brian Paul [Tue, 10 Jun 2008 18:08:40 +0000 (12:08 -0600)]
mesa: remove unnecessary swrast, tnl includes

16 years agogallium: remove stray include of st_context.h
Brian Paul [Tue, 10 Jun 2008 18:07:38 +0000 (12:07 -0600)]
gallium: remove stray include of st_context.h

16 years agoadd some missing rule dependencies
Brian Paul [Tue, 10 Jun 2008 16:09:14 +0000 (10:09 -0600)]
add some missing rule dependencies

16 years agoRevert "draw: no need to rearrange most primitives in vcache for flatshade-first"
Keith Whitwell [Tue, 10 Jun 2008 15:56:32 +0000 (16:56 +0100)]
Revert "draw: no need to rearrange most primitives in vcache for flatshade-first"

This reverts commit ad44e68706877ab06929747e7a82c718c1c27e02.

16 years agodraw: no need to rearrange most primitives in vcache for flatshade-first
Keith Whitwell [Tue, 10 Jun 2008 13:46:25 +0000 (14:46 +0100)]
draw: no need to rearrange most primitives in vcache for flatshade-first

The driver/pipeline will still be applying flatshade-first state to the
triangles emitted from vcache, so there's no need to rotate the vertices
of most primitives.  The only exception is POLYGON, as explained in the
code.

16 years agodraw: fix edgeflags on clipped poly emit
Keith Whitwell [Tue, 10 Jun 2008 13:45:34 +0000 (14:45 +0100)]
draw: fix edgeflags on clipped poly emit

16 years agotrivial: add trifan tests
Keith Whitwell [Tue, 10 Jun 2008 13:23:49 +0000 (14:23 +0100)]
trivial: add trifan tests

16 years agotrivial: add poly-flat-clip tests
Keith Whitwell [Tue, 10 Jun 2008 13:09:45 +0000 (14:09 +0100)]
trivial: add poly-flat-clip tests

16 years agotrivial: add tristrip-flat to makefile
Keith Whitwell [Tue, 10 Jun 2008 11:58:13 +0000 (12:58 +0100)]
trivial: add tristrip-flat to makefile

16 years agocopy msaa visuals capability
Roland Scheidegger [Tue, 10 Jun 2008 13:43:33 +0000 (15:43 +0200)]
copy msaa visuals capability

16 years agodraw: rework splitting of fan/loop prims in varray.c, fix flatshade issues
Keith Whitwell [Tue, 10 Jun 2008 08:16:34 +0000 (09:16 +0100)]
draw: rework splitting of fan/loop prims in varray.c, fix flatshade issues