mesa.git
15 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

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

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

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

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

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

15 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

15 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

15 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

15 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

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

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

15 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

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

15 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

15 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

15 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

15 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

15 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

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

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

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

15 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

15 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)

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

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

15 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

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

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

15 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

15 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

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

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

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

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

15 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

15 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

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

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

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

15 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

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

15 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

15 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

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

15 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

15 years agosoftpipe: Replace GETENV by debug_get_bool_option.
José Fonseca [Mon, 9 Jun 2008 23:52:10 +0000 (08:52 +0900)]
softpipe: Replace GETENV by debug_get_bool_option.

15 years agogallium: Detect buffer overflows in the homegrown memory debugger.
José Fonseca [Mon, 9 Jun 2008 10:56:52 +0000 (19:56 +0900)]
gallium: Detect buffer overflows in the homegrown memory debugger.

15 years agopipebuffer: Alternative buffer manager.
José Fonseca [Mon, 9 Jun 2008 23:38:24 +0000 (08:38 +0900)]
pipebuffer: Alternative buffer manager.

For situations where one has a reserve memory pool, or
a faster/slower pool.

15 years agopipebuffer: Be more lenient when matching cached buffer sizes.
José Fonseca [Mon, 9 Jun 2008 09:49:13 +0000 (18:49 +0900)]
pipebuffer: Be more lenient when matching cached buffer sizes.

Reuse cached buffers up to twice as big a requested.

15 years agogallium: Deprecate GETENV. Replace by debug_get_bool_option.
José Fonseca [Mon, 9 Jun 2008 23:32:52 +0000 (08:32 +0900)]
gallium: Deprecate GETENV. Replace by debug_get_bool_option.

debug_get_bool_option will interpret "n", "no", "0", "f", or
"false" as FALSE; and everything else as TRUE. The default value
(used when the variable is not set) is received as a parameter.

15 years agomesa: Xlib libGL.so fixes from master
Brian Paul [Mon, 9 Jun 2008 22:18:41 +0000 (16:18 -0600)]
mesa: Xlib libGL.so fixes from master

15 years agomesa: remove unused api_eval.h header file
Brian Paul [Mon, 9 Jun 2008 21:19:08 +0000 (15:19 -0600)]
mesa: remove unused api_eval.h header file

15 years agomesa: refactor: move _mesa_update_minmax/histogram() into image.c
Brian Paul [Mon, 9 Jun 2008 21:14:02 +0000 (15:14 -0600)]
mesa: refactor: move _mesa_update_minmax/histogram() into image.c

15 years agomesa: refactor: move multisample-related functions into new multisample.c file
Brian Paul [Mon, 9 Jun 2008 21:09:21 +0000 (15:09 -0600)]
mesa: refactor: move multisample-related functions into new multisample.c file

15 years agomesa: refactor: move _mesa_resizebuffers(), _mesa_ResizeBuffersMESA() to framebuffer.c
Brian Paul [Mon, 9 Jun 2008 21:04:31 +0000 (15:04 -0600)]
mesa: refactor: move _mesa_resizebuffers(), _mesa_ResizeBuffersMESA() to framebuffer.c

15 years agomesa: refactor: move glClear, glClearColor into new clear.c file.
Brian Paul [Mon, 9 Jun 2008 21:01:02 +0000 (15:01 -0600)]
mesa: refactor: move glClear, glClearColor into new clear.c file.

15 years agogallium: include scissor.h
Brian Paul [Mon, 9 Jun 2008 20:56:29 +0000 (14:56 -0600)]
gallium: include scissor.h

15 years agomesa: refactor: move scissor functions into new scissor.c file
Brian Paul [Mon, 9 Jun 2008 20:55:24 +0000 (14:55 -0600)]
mesa: refactor: move scissor functions into new scissor.c file

15 years agomesa: refactor: move _mesa_init_exec_table() into new api_exec.c file
Brian Paul [Mon, 9 Jun 2008 20:49:04 +0000 (14:49 -0600)]
mesa: refactor: move _mesa_init_exec_table() into new api_exec.c file

15 years agomesa: refactor: move pixel map/scale/bias code into image.c
Brian Paul [Mon, 9 Jun 2008 20:32:27 +0000 (14:32 -0600)]
mesa: refactor: move pixel map/scale/bias code into image.c

pixel.c is just the API-related code now.

15 years agomesa: refactor: new _mesa_init_pixelstore() function
Brian Paul [Mon, 9 Jun 2008 20:25:23 +0000 (14:25 -0600)]
mesa: refactor: new _mesa_init_pixelstore() function

15 years agomesa: refactor: move glReadPixels code into new readpix.c file
Brian Paul [Mon, 9 Jun 2008 20:22:15 +0000 (14:22 -0600)]
mesa: refactor: move glReadPixels code into new readpix.c file

15 years agomesa: refactor: move glPixelStore function into new pixelstore.c file
Brian Paul [Mon, 9 Jun 2008 20:14:34 +0000 (14:14 -0600)]
mesa: refactor: move glPixelStore function into new pixelstore.c file

15 years agos/SOLO/MESA/
Brian Paul [Mon, 9 Jun 2008 20:09:28 +0000 (14:09 -0600)]
s/SOLO/MESA/

15 years agomesa: chmod a-x context.c
Brian Paul [Mon, 9 Jun 2008 20:03:01 +0000 (14:03 -0600)]
mesa: chmod a-x context.c

15 years agoMakefile clean-ups
Brian Paul [Mon, 9 Jun 2008 19:51:36 +0000 (13:51 -0600)]
Makefile clean-ups

15 years agomore old stuff, rename SOLO->MESA, etc
Brian Paul [Mon, 9 Jun 2008 19:51:21 +0000 (13:51 -0600)]
more old stuff, rename SOLO->MESA, etc

15 years agomesa: disable VF_SOURCES
Brian Paul [Mon, 9 Jun 2008 19:38:23 +0000 (13:38 -0600)]
mesa: disable VF_SOURCES

15 years agomesa: remove some obsolete gallium bits
Brian Paul [Mon, 9 Jun 2008 19:35:34 +0000 (13:35 -0600)]
mesa: remove some obsolete gallium bits

15 years agomesa: get rid of FBDEV/SVGA/etc bits
Brian Paul [Mon, 9 Jun 2008 19:33:00 +0000 (13:33 -0600)]
mesa: get rid of FBDEV/SVGA/etc bits

15 years agoegl: s/softpipe_egl.so/egl_softpipe.so/
Brian Paul [Mon, 9 Jun 2008 18:26:20 +0000 (12:26 -0600)]
egl: s/softpipe_egl.so/egl_softpipe.so/

15 years agoegl: choose between DRI and softpipe drivers
Brian Paul [Mon, 9 Jun 2008 17:47:18 +0000 (11:47 -0600)]
egl: choose between DRI and softpipe drivers

15 years agoglsl: fix array size initialiazers using const variables
Zack Rusin [Mon, 9 Jun 2008 03:05:15 +0000 (23:05 -0400)]
glsl: fix array size initialiazers using const variables

e.g.
const int kernelSize = 9;
uniform vec2 kernel[kernelSize];

15 years agogallium: disable a tgsi_dump() call
Brian Paul [Mon, 9 Jun 2008 15:27:52 +0000 (09:27 -0600)]
gallium: disable a tgsi_dump() call

15 years agoi915: Disable color buffer writes if no color buffer is attached
Jakob Bornecrantz [Mon, 9 Jun 2008 14:17:35 +0000 (16:17 +0200)]
i915: Disable color buffer writes if no color buffer is attached

15 years agomesa: Most of the functions of MESA_TEXTURE_S8_Z24 are now supported
Jakob Bornecrantz [Mon, 9 Jun 2008 14:29:57 +0000 (16:29 +0200)]
mesa: Most of the functions of MESA_TEXTURE_S8_Z24 are now supported

15 years agomesa: Do not compile the dri drivers in mesa
Jakob Bornecrantz [Sun, 8 Jun 2008 15:29:56 +0000 (17:29 +0200)]
mesa: Do not compile the dri drivers in mesa

15 years agomesa: Add MESA_FORMAT_S8_Z24 texture format
Jakob Bornecrantz [Fri, 6 Jun 2008 14:12:55 +0000 (16:12 +0200)]
mesa: Add MESA_FORMAT_S8_Z24 texture format
None of the fetch and store functions implemented.
This atleast stops shadowtex from locking the GPU on
i915 with the linux-dri-x86 target. It most of it looks
okay, with the exception of actually displaying the texture.

15 years agodraw: fix temp vs output buffer typo in vsvg_run_elts
Keith Whitwell [Sat, 7 Jun 2008 12:27:53 +0000 (13:27 +0100)]
draw: fix temp vs output buffer typo in vsvg_run_elts

15 years agoFix CRLF line endings.
Jose Fonseca [Sat, 7 Jun 2008 03:34:45 +0000 (12:34 +0900)]
Fix CRLF line endings.

15 years agoFix CRLF line endings.
Jose Fonseca [Sat, 7 Jun 2008 03:33:47 +0000 (12:33 +0900)]
Fix CRLF line endings.

15 years agoegl: improved Makefile
Brian Paul [Fri, 6 Jun 2008 21:59:54 +0000 (15:59 -0600)]
egl: improved Makefile

15 years agoegl: EGL->DRI adaptor/driver
Brian Paul [Fri, 6 Jun 2008 21:52:33 +0000 (15:52 -0600)]
egl: EGL->DRI adaptor/driver

Allows regular DRI drivers to work with libEGL.

15 years agoegl: clean-ups
Brian Paul [Fri, 6 Jun 2008 21:42:08 +0000 (15:42 -0600)]
egl: clean-ups

15 years agomesa: disable visual warning unless LIBGL_DEBUG is defined
Brian Paul [Fri, 6 Jun 2008 21:41:41 +0000 (15:41 -0600)]
mesa: disable visual warning unless LIBGL_DEBUG is defined

15 years agoegl: make _eglChooseDRMDriver() non-static
Brian Paul [Fri, 6 Jun 2008 21:10:42 +0000 (15:10 -0600)]
egl: make _eglChooseDRMDriver() non-static

15 years agoegl: change default logging level to _EGL_WARNING
Brian Paul [Fri, 6 Jun 2008 21:10:22 +0000 (15:10 -0600)]
egl: change default logging level to _EGL_WARNING

15 years agogallium: additional comment
Brian Paul [Fri, 6 Jun 2008 18:33:53 +0000 (12:33 -0600)]
gallium: additional comment

15 years agoegl: updated EGLAPI for Windows
Jonathan White [Fri, 6 Jun 2008 21:13:59 +0000 (15:13 -0600)]
egl: updated EGLAPI for Windows

15 years agomesa: sync up with latest Makefile changes on master
Brian Paul [Fri, 6 Jun 2008 18:32:58 +0000 (12:32 -0600)]
mesa: sync up with latest Makefile changes on master

15 years agodraw: fix intermediate buffer confusion in draw_vs_varient.c
Keith Whitwell [Fri, 6 Jun 2008 17:09:32 +0000 (18:09 +0100)]
draw: fix intermediate buffer confusion in draw_vs_varient.c

The final output buffer can't be used to hold intermediate results
as the intermediate vertex size may be greater than the final vertex
size, and in any case the output buffer may be uncached in hw drivers.

15 years agoegl: open X display if needed
Brian Paul [Fri, 6 Jun 2008 16:42:13 +0000 (10:42 -0600)]
egl: open X display if needed