profile/ivi/mesa.git
16 years agoGallivm: reorder the functions alphabetically so I can work on it.
Stephane Marchesin [Tue, 7 Oct 2008 21:43:21 +0000 (23:43 +0200)]
Gallivm: reorder the functions alphabetically so I can work on it.

16 years agoMerge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa...
Stephane Marchesin [Tue, 7 Oct 2008 21:42:48 +0000 (23:42 +0200)]
Merge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa into gallium-0.2

16 years agoProgs: hook the glsl identity example into the makefile.
Stephane Marchesin [Tue, 7 Oct 2008 21:42:36 +0000 (23:42 +0200)]
Progs: hook the glsl identity example into the makefile.

16 years agocell: memset() key to zero
Brian Paul [Tue, 7 Oct 2008 20:50:06 +0000 (14:50 -0600)]
cell: memset() key to zero

16 years agocell: use new keymap to save/re-use fragment ops code
Brian Paul [Tue, 7 Oct 2008 20:34:08 +0000 (14:34 -0600)]
cell: use new keymap to save/re-use fragment ops code

16 years agogallium: added general-purpose key->data map/lookup container
Brian Paul [Tue, 7 Oct 2008 20:33:16 +0000 (14:33 -0600)]
gallium: added general-purpose key->data map/lookup container

16 years agoProgs: add a trivial glsl test, useful for gallium driver bringup/debug.
Stephane Marchesin [Tue, 7 Oct 2008 19:21:20 +0000 (21:21 +0200)]
Progs: add a trivial glsl test, useful for gallium driver bringup/debug.

16 years agoGallivm: don't say hello, it's rude.
Stephane Marchesin [Tue, 7 Oct 2008 19:13:49 +0000 (21:13 +0200)]
Gallivm: don't say hello, it's rude.

16 years agoMerge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa...
Stephane Marchesin [Tue, 7 Oct 2008 19:11:14 +0000 (21:11 +0200)]
Merge branch 'gallium-0.2' of git+ssh://marcheu@git.freedesktop.org/git/mesa/mesa into gallium-0.2

16 years agoGallivm: fix the constant layout, this gets a bunch of progs/ working. Notably, gears...
Stephane Marchesin [Tue, 7 Oct 2008 19:11:01 +0000 (21:11 +0200)]
Gallivm: fix the constant layout, this gets a bunch of progs/ working. Notably, gears doesn't.

16 years agogallium: Introduce PIPE_ARCH_SSE define for SSE support.
José Fonseca [Tue, 7 Oct 2008 05:25:09 +0000 (14:25 +0900)]
gallium: Introduce PIPE_ARCH_SSE define for SSE support.

Besides meaning x86 and x86-64 architecture, it also depends on SSE2
support enabled on gcc.

This fixes the linux-debug build.

16 years agoMesa: fix the case where there are no vertex attributes.
Stephane Marchesin [Mon, 6 Oct 2008 17:48:57 +0000 (19:48 +0200)]
Mesa: fix the case where there are no vertex attributes.

16 years agoCELL: changes to generate SPU code for stenciling
Robert Ellison [Sat, 4 Oct 2008 00:00:43 +0000 (18:00 -0600)]
CELL: changes to generate SPU code for stenciling

This set of code changes are for stencil code generation
support.  Both one-sided and two-sided stenciling are supported.
In addition to the raw code generation changes, these changes had
to be made elsewhere in the system:

- Added new "register set" feature to the SPE assembly generation.
  A "register set" is a way to allocate multiple registers and free
  them all at the same time, delegating register allocation management
  to the spe_function unit.  It's quite useful in complex register
  allocation schemes (like stenciling).

- Added and improved SPE macro calculations.
  These are operations between registers and unsigned integer
  immediates.  In many cases, the calculation can be performed
  with a single instruction; the macros will generate the
  single instruction if possible, or generate a register load
  and register-to-register operation if not.  These macro
  functions are: spe_load_uint() (which has new ways to
  load a value in a single instruction), spe_and_uint(),
  spe_xor_uint(), spe_compare_equal_uint(), and spe_compare_greater_uint().

- Added facing to fragment generation.  While rendering, the rasterizer
  needs to be able to determine front- and back-facing fragments, in order
  to correctly apply two-sided stencil.  That requires these changes:
  - Added front_winding field to the cell_command_render block, so that
    the state tracker could communicate to the rasterizer what it
    considered to be the front-facing direction.
  - Added fragment facing as an input to the fragment function.
  - Calculated facing is passed during emit_quad().

16 years agodraw: modify prefetching slightly
Keith Whitwell [Thu, 2 Oct 2008 11:53:11 +0000 (12:53 +0100)]
draw: modify prefetching slightly

16 years agodraw: don't keep refetching constant inputs
Keith Whitwell [Wed, 1 Oct 2008 17:40:01 +0000 (18:40 +0100)]
draw: don't keep refetching constant inputs

16 years agortasm: add prefetch instructions
Keith Whitwell [Thu, 2 Oct 2008 11:46:01 +0000 (12:46 +0100)]
rtasm: add prefetch instructions

16 years agodraw: add streamlined paths for fetching linear verts
Keith Whitwell [Wed, 1 Oct 2008 12:34:38 +0000 (13:34 +0100)]
draw: add streamlined paths for fetching linear verts

16 years agomesa: Fix compiler warnings on Windows.
Michal Krol [Wed, 1 Oct 2008 17:36:04 +0000 (19:36 +0200)]
mesa: Fix compiler warnings on Windows.

16 years agoGallivm: add slt. glxgears should be running, except it isn't.
Stephane Marchesin [Tue, 30 Sep 2008 22:00:58 +0000 (00:00 +0200)]
Gallivm: add slt. glxgears should be running, except it isn't.

16 years agoGallivm: port to llvm 2.4.
Stephane Marchesin [Tue, 30 Sep 2008 18:50:49 +0000 (20:50 +0200)]
Gallivm: port to llvm 2.4.

16 years agoGallivm: fix off-by-one.
Stephane Marchesin [Sun, 28 Sep 2008 21:18:55 +0000 (23:18 +0200)]
Gallivm: fix off-by-one.

16 years agoGallivm: need to link with libstdc++ for llvm.
Stephane Marchesin [Sun, 28 Sep 2008 19:45:48 +0000 (21:45 +0200)]
Gallivm: need to link with libstdc++ for llvm.

16 years agoGallivm: more instructions.
Stephane Marchesin [Sun, 28 Sep 2008 17:48:26 +0000 (19:48 +0200)]
Gallivm: more instructions.

16 years agoGallivm: make it compile again, add some opcodes.
Stephane Marchesin [Sun, 28 Sep 2008 16:33:23 +0000 (18:33 +0200)]
Gallivm: make it compile again, add some opcodes.

16 years agomesa: fix temp register allocation problems.
Brian Paul [Fri, 26 Sep 2008 17:18:06 +0000 (11:18 -0600)]
mesa: fix temp register allocation problems.

Complex texcombine modes were running out of registers (>32 registers for 8 tex units).

16 years agoegl: check for null ptr/name
Brian Paul [Fri, 26 Sep 2008 17:17:09 +0000 (11:17 -0600)]
egl: check for null ptr/name

16 years agoegl: remove space after -L flag
Brian Paul [Fri, 26 Sep 2008 17:16:44 +0000 (11:16 -0600)]
egl: remove space after -L flag

16 years agoAdd -msse and -msse2 to the *-x86 configs.
José Fonseca [Wed, 1 Oct 2008 01:25:41 +0000 (10:25 +0900)]
Add -msse and -msse2 to the *-x86 configs.

16 years agoutil: No-op u_sse.h outside PIPE_ARCH_X86/X86_64.
José Fonseca [Tue, 30 Sep 2008 23:28:05 +0000 (08:28 +0900)]
util: No-op u_sse.h outside PIPE_ARCH_X86/X86_64.

16 years agotgsi: Include p_config.h.
José Fonseca [Tue, 30 Sep 2008 23:27:20 +0000 (08:27 +0900)]
tgsi: Include p_config.h.

16 years agocell: Fixed usage of MAX_INSTRUCTIONS to use new MAX_PROGRAM_INSTRUCTIONS instead...
Jonathan White [Tue, 30 Sep 2008 21:38:38 +0000 (15:38 -0600)]
cell: Fixed usage of MAX_INSTRUCTIONS to use new MAX_PROGRAM_INSTRUCTIONS instead of old MAX_NV_XXX definitions in order to allow Cell TGSI fragment program generator to work again.

16 years agocell: Moved X86 checks to wrap #include section so that Cell targets will compile...
Jonathan White [Tue, 30 Sep 2008 20:07:09 +0000 (14:07 -0600)]
cell:  Moved X86 checks to wrap #include section so that Cell targets will compile again.

16 years agoutil: Fix util_fast_pow/exp2/log2.
José Fonseca [Tue, 30 Sep 2008 16:13:40 +0000 (01:13 +0900)]
util: Fix util_fast_pow/exp2/log2.

- Use a lookup table for log2.

- Compute (float) (1 << ipart) by tweaking with the exponent directly to
avoid integer overflow and float conversion.

- Also table negative exponents to avoid float division and branching.

- Implement util_fast_exp as function of util_fast_exp2.

16 years agotgsi: SSE2 optimized exp2, log2 and pow implementations.
José Fonseca [Mon, 29 Sep 2008 16:12:52 +0000 (01:12 +0900)]
tgsi: SSE2 optimized exp2, log2 and pow implementations.

Special care must be taken when calling compiler generated SSE2 functions
from the runtime generated SSE2: saving the xmm registers, and notify gcc
the stack is not 16byte aligned.

It would be more efficient to keep the stack pointer 16byte aligned, but
too hairy, and not consistent in all x86 architectures.

This has been tested in linux x86 and windows x86 userspace. Not tested on
x86-64 because it is broken for other reasons (even without this change).

16 years agoutil: Header for SSE2 intrinsics portability.
José Fonseca [Mon, 29 Sep 2008 16:07:09 +0000 (01:07 +0900)]
util: Header for SSE2 intrinsics portability.

16 years agortasm: Implement immediate group 1 instructions. Fix SIB emition.
José Fonseca [Mon, 29 Sep 2008 10:09:39 +0000 (19:09 +0900)]
rtasm: Implement immediate group 1 instructions. Fix SIB emition.

16 years agocell: checkpoint: more work in emit_function_call()
Brian Paul [Fri, 26 Sep 2008 23:59:19 +0000 (17:59 -0600)]
cell: checkpoint: more work in emit_function_call()

Simple function call works now, but we don't save/restore the caller's registers yet.

16 years agocell: stub-out sin/cos function bodies to avoid trashing caller's stack for now
Brian Paul [Fri, 26 Sep 2008 23:57:01 +0000 (17:57 -0600)]
cell: stub-out sin/cos function bodies to avoid trashing caller's stack for now

16 years agogallium: SPU register comments
Brian Paul [Fri, 26 Sep 2008 23:06:22 +0000 (17:06 -0600)]
gallium: SPU register comments

16 years agocell: move command processing code into new spu_command.c file
Brian Paul [Fri, 26 Sep 2008 16:15:11 +0000 (10:15 -0600)]
cell: move command processing code into new spu_command.c file

16 years agocell: move debug-related declarations
Brian Paul [Fri, 26 Sep 2008 16:10:08 +0000 (10:10 -0600)]
cell: move debug-related declarations

16 years agocell: move debug macros into new spu_debug.h
Brian Paul [Fri, 26 Sep 2008 16:02:58 +0000 (10:02 -0600)]
cell: move debug macros into new spu_debug.h

16 years agocell: move really_clear_tiles()
Brian Paul [Fri, 26 Sep 2008 16:00:14 +0000 (10:00 -0600)]
cell: move really_clear_tiles()

16 years agocell: align instruction buffers to 8-byte, not 32-byte boundary
Brian Paul [Fri, 26 Sep 2008 15:58:17 +0000 (09:58 -0600)]
cell: align instruction buffers to 8-byte, not 32-byte boundary

16 years agocell: asst clean-up, var renaming
Brian Paul [Fri, 26 Sep 2008 15:53:03 +0000 (09:53 -0600)]
cell: asst clean-up, var renaming

16 years agocell: remove unneeded blend/depth_stencil subclasses
Brian Paul [Fri, 26 Sep 2008 15:48:17 +0000 (09:48 -0600)]
cell: remove unneeded blend/depth_stencil subclasses

16 years agocell: checkpoint: support for function calls in SPU shaders
Brian Paul [Fri, 26 Sep 2008 15:38:40 +0000 (09:38 -0600)]
cell: checkpoint: support for function calls in SPU shaders

Will be used for instructions like SIN/COS/POW/TEX/etc.  The PPU needs to
know the address of some functions in the SPU address space.  Send that
info to the PPU/main memory rather than patch up shaders on the SPU side.
Not finished/tested yet...

16 years agocell: inst reorder to save a cycle
Brian Paul [Fri, 26 Sep 2008 15:32:09 +0000 (09:32 -0600)]
cell: inst reorder to save a cycle

16 years agost: add prototype for st_get_framebuffer_dimensions()
Alan Hourihane [Fri, 26 Sep 2008 14:08:57 +0000 (15:08 +0100)]
st: add prototype for st_get_framebuffer_dimensions()

16 years agost: export st_get_framebuffer_dimensions() to retrieve
Alan Hourihane [Fri, 26 Sep 2008 14:04:09 +0000 (15:04 +0100)]
st: export st_get_framebuffer_dimensions() to retrieve
    the width & height of the fb

16 years agomesa: fix incorrect parameter order
Brian Paul [Fri, 26 Sep 2008 13:37:32 +0000 (07:37 -0600)]
mesa: fix incorrect parameter order

16 years agomesa: remove const qualifiers to match device driver interface function
Brian Paul [Fri, 26 Sep 2008 13:37:15 +0000 (07:37 -0600)]
mesa: remove const qualifiers to match device driver interface function

16 years agogallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()
Brian Paul [Fri, 19 Sep 2008 15:25:32 +0000 (09:25 -0600)]
gallium: rename tgsi_translate_mesa_program() to st_translate_mesa_program()

16 years agomesa: add some braces
Brian Paul [Fri, 19 Sep 2008 00:31:47 +0000 (18:31 -0600)]
mesa: add some braces

16 years agomesa: fix/simplify initialization of vertex/fragment program limits
Brian Paul [Fri, 26 Sep 2008 01:22:29 +0000 (19:22 -0600)]
mesa: fix/simplify initialization of vertex/fragment program limits

Defaults for program length, num ALU instructions, num indirections, etc.
basically indicate no limit for software rendering.  Driver should override
as needed.

16 years agomesa: increase MAX_INSTRUCTIONS
Brian Paul [Fri, 26 Sep 2008 00:40:16 +0000 (18:40 -0600)]
mesa: increase MAX_INSTRUCTIONS

16 years agomesa: fix swizzle failure, fix typo
Brian Paul [Fri, 26 Sep 2008 00:27:22 +0000 (18:27 -0600)]
mesa: fix swizzle failure, fix typo

16 years agomesa: fix default buffer object access value
Brian Paul [Thu, 25 Sep 2008 17:46:27 +0000 (11:46 -0600)]
mesa: fix default buffer object access value

16 years agost: change from ** to * for st_unreference_framebuffer()
Alan Hourihane [Fri, 26 Sep 2008 13:19:18 +0000 (14:19 +0100)]
st: change from ** to * for st_unreference_framebuffer()

16 years agomesa: fix indenting
Keith Whitwell [Wed, 24 Sep 2008 23:56:44 +0000 (18:56 -0500)]
mesa: fix indenting

16 years agodri: remove unused files present only on gallium-0.2 branch
Keith Whitwell [Wed, 24 Sep 2008 16:59:17 +0000 (09:59 -0700)]
dri: remove unused files present only on gallium-0.2 branch

16 years agoMerge commit 'origin/master' into HEAD
Keith Whitwell [Fri, 26 Sep 2008 13:09:04 +0000 (14:09 +0100)]
Merge commit 'origin/master' into HEAD

Conflicts:

src/mesa/vbo/vbo.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_exec_draw.c

16 years agoegl: cleanup doublebuffer check
Alan Hourihane [Fri, 26 Sep 2008 11:27:29 +0000 (12:27 +0100)]
egl: cleanup doublebuffer check

16 years agoegl: switch to egl_glx.so as the default EGL driver for X.
Alan Hourihane [Fri, 26 Sep 2008 11:18:59 +0000 (12:18 +0100)]
egl: switch to egl_glx.so as the default EGL driver for X.

16 years agoegl: fudge with LIBGL_DRIVERS_PATH to pick up EGL specific DRI driver.
Alan Hourihane [Fri, 26 Sep 2008 11:18:16 +0000 (12:18 +0100)]
egl: fudge with LIBGL_DRIVERS_PATH to pick up EGL specific DRI driver.

16 years agoegl: Add new EGL driver that wraps GLX.
Alan Hourihane [Fri, 26 Sep 2008 10:18:58 +0000 (11:18 +0100)]
egl: Add new EGL driver that wraps GLX.

16 years agolink EGL demos with -lGL
Alan Hourihane [Fri, 26 Sep 2008 10:16:39 +0000 (11:16 +0100)]
link EGL demos with -lGL

16 years agomesa: fix cast/conversion for optional code
Brian [Fri, 26 Sep 2008 01:57:34 +0000 (19:57 -0600)]
mesa: fix cast/conversion for optional code

16 years agoutil: Update fast_log2 article url.
José Fonseca [Tue, 23 Sep 2008 07:40:49 +0000 (16:40 +0900)]
util: Update fast_log2 article url.

16 years agomesa: fix typo (s/feadback/feedback/). Fixes broken selection/feedback.
Brian Paul [Fri, 26 Sep 2008 00:55:52 +0000 (18:55 -0600)]
mesa: fix typo (s/feadback/feedback/).  Fixes broken selection/feedback.

16 years agomesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)
Brian Paul [Thu, 25 Sep 2008 17:54:00 +0000 (11:54 -0600)]
mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)

16 years agomesa: fix some VBO buffer object issues
Brian Paul [Thu, 25 Sep 2008 17:03:46 +0000 (11:03 -0600)]
mesa: fix some VBO buffer object issues

The VBO module may use a real VBO or a malloc'd buffer for vertex storage.
Be careful not to accidentally replace the later with the former when drawing.
Check if using a real VBO at destroy time to prevent a double-free.

16 years agomesa: fix function params to match prototypes
Sam Hocevar [Thu, 25 Sep 2008 15:58:27 +0000 (09:58 -0600)]
mesa: fix function params to match prototypes

16 years agomesa: prevent the slang code generator from aborting when faced with a sampler variab...
Sam Hocevar [Thu, 25 Sep 2008 12:56:41 +0000 (14:56 +0200)]
mesa: prevent the slang code generator from aborting when faced with a sampler variable redeclaration.

16 years agoi965: support for sin() and cos() in vertex shaders.
Sam Hocevar [Thu, 25 Sep 2008 08:49:05 +0000 (10:49 +0200)]
i965: support for sin() and cos() in vertex shaders.

16 years agoi965: more meaningful message for unsupported opcodes.
Sam Hocevar [Tue, 23 Sep 2008 15:56:19 +0000 (17:56 +0200)]
i965: more meaningful message for unsupported opcodes.

16 years agointel: Fix clears to depth_stencil texture attachments.
Eric Anholt [Wed, 24 Sep 2008 22:10:45 +0000 (15:10 -0700)]
intel: Fix clears to depth_stencil texture attachments.

Broken by 0adfd1021035e90995a25ec5f20b736e55075d92, showed up as an assertion
failure in a software fallback in the shadowtex demo when we failed to
recognize the texture format.

16 years agoadd cso_hash_contains() function
Alan Hourihane [Wed, 24 Sep 2008 19:42:57 +0000 (20:42 +0100)]
add cso_hash_contains() function

16 years agoset SamplerUnit[] entry in load_texture() just to be safe
Brian [Fri, 14 Dec 2007 18:42:28 +0000 (11:42 -0700)]
set SamplerUnit[] entry in load_texture() just to be safe
(cherry picked from commit fce4612f8a29ee1798c9326a431a139d856c7a04)

16 years agouse PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating immediates/literals
Brian [Fri, 18 Jan 2008 19:45:27 +0000 (12:45 -0700)]
use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating immediates/literals
(cherry picked from commit fdc8636bdc65deb0d95a62a51c8d9bca05bc6bb8)

16 years agoset program->SamplersUsed bit when using a texture instruction
Brian [Fri, 14 Dec 2007 18:16:49 +0000 (11:16 -0700)]
set program->SamplersUsed bit when using a texture instruction

16 years agoRemove ctx field from texenvprog_cache
Brian [Mon, 29 Oct 2007 18:25:46 +0000 (12:25 -0600)]
Remove ctx field from texenvprog_cache

16 years agoinclude programopt.h
Brian [Tue, 25 Sep 2007 21:20:04 +0000 (15:20 -0600)]
include programopt.h
(cherry picked from commit 83fad68ec1989c719646a76f4cc5e0b3d23537ed)

16 years agoDisable vertex shader fog, compute fog in fragment shader.
Brian [Tue, 25 Sep 2007 21:18:51 +0000 (15:18 -0600)]
Disable vertex shader fog, compute fog in fragment shader.

16 years agotemporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
Brian [Wed, 19 Sep 2007 01:29:26 +0000 (19:29 -0600)]
temporarily set the FRAG_BIT_FOGC bit in InputsRead when fog is enabled
(cherry picked from commit 63be96bdc7e9f388a5c49295bd7e150462fd003a)

16 years agomesa: fix main/ prefix in include
Keith Whitwell [Wed, 24 Sep 2008 04:08:50 +0000 (21:08 -0700)]
mesa: fix main/ prefix in include

16 years agovbo: unmap and remap immediate vbo before/after each draw.
Keith Whitwell [Tue, 18 Dec 2007 16:56:22 +0000 (16:56 +0000)]
vbo: unmap and remap immediate vbo before/after each draw.

Also use BufferData(NULL) to get fresh storage and avoid synchronous
operation where we would have to flush and wait for the fence after each
draw because of the map.

This will chew through a whole load of buffer space on small draws, so
it isn't a proper solution.  Need to support a no-fence or append mapping
mode to do this right, or use user buffers.

16 years agoadded vbo_use_buffer_objects() to specify that immediate mode data should be put...
Brian [Fri, 17 Aug 2007 14:26:33 +0000 (15:26 +0100)]
added vbo_use_buffer_objects() to specify that immediate mode data should be put into bufferobjects

16 years agovbo: seed initial max_element value with a more likely candidate
Keith Whitwell [Mon, 25 Aug 2008 09:59:45 +0000 (10:59 +0100)]
vbo: seed initial max_element value with a more likely candidate
(cherry picked from commit 026e7731e549e0777c010348460fd48b3d75a843)

16 years agoMerge commit 'origin/master' into gallium-0.2
Keith Whitwell [Wed, 24 Sep 2008 00:40:49 +0000 (17:40 -0700)]
Merge commit 'origin/master' into gallium-0.2

Conflicts:

src/mesa/shader/shader_api.c

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/
(cherry picked from commit 8a369b909a6648ae7a5a0c2dcb972a2f96f99a80)

16 years agomesa: glsl: fix glGetUniform for matrix queries
Brian Paul [Wed, 6 Aug 2008 19:07:09 +0000 (13:07 -0600)]
mesa: glsl: fix glGetUniform for matrix queries
(cherry picked from commit 7a6eba54d064cadf15f93df2c1748cf5e474ef03)

16 years agomesa: glsl: fix a number of glUniform issues
Brian Paul [Wed, 6 Aug 2008 22:26:47 +0000 (16:26 -0600)]
mesa: glsl: fix a number of glUniform issues

Additional error checking.
Allow setting elements of uniform arrays.  This involves encoding both
a uniform location and a parameter offset in the value returned by
glGetUniformLocation().
Limit glUniform[if]v()'s count to the size of the uniform array.
When setting bool-valued uniforms, convert all float/int values to 0 or 1.

16 years agomesa: glsl: fix error check in get_uniformfv()
Brian Paul [Wed, 6 Aug 2008 18:45:14 +0000 (12:45 -0600)]
mesa: glsl: fix error check in get_uniformfv()
(cherry picked from commit 18cd9c229a1fc8da8b7669b8d1d100f6bbeca183)

16 years agoMerge commit 'origin/master' into gallium-0.2
Keith Whitwell [Wed, 24 Sep 2008 00:24:39 +0000 (17:24 -0700)]
Merge commit 'origin/master' into gallium-0.2

Conflicts:

src/mesa/main/drawpix.c
src/mesa/shader/prog_uniform.c
src/mesa/shader/slang/slang_link.c

16 years agoMerge commit 'origin/master' into gallium-0.2
Keith Whitwell [Wed, 24 Sep 2008 00:08:24 +0000 (17:08 -0700)]
Merge commit 'origin/master' into gallium-0.2

Conflicts:

src/mesa/glapi/glapi_getproc.c
src/mesa/main/image.c
src/mesa/shader/slang/slang_link.c

16 years agomesa: Apply MSVC portability fixes from Alan Hourihane.
José Fonseca [Sat, 31 May 2008 09:14:09 +0000 (18:14 +0900)]
mesa: Apply MSVC portability fixes from Alan Hourihane.

16 years agomesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()
Brian Paul [Wed, 17 Sep 2008 19:13:02 +0000 (13:13 -0600)]
mesa: update program->NumAddressRegs field in _slang_update_inputs_outputs()

16 years agomesa: add fwd decl of fill_in_entrypoint_offset()
Brian Paul [Wed, 18 Jun 2008 17:00:43 +0000 (11:00 -0600)]
mesa: add fwd decl of fill_in_entrypoint_offset()
(cherry picked from commit b1eff0228b7199920c02e62446ebf5496c298814)

16 years agomesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord
Brian Paul [Wed, 17 Sep 2008 22:48:13 +0000 (16:48 -0600)]
mesa: new gl_fragment_program fields indicating use of fog, front-facing, point coord
(cherry picked from commit d7a7b0a10dd355fbeb7a404091a42d4ab558c820)