mesa.git
16 years agog3dvl: Use R16_SNORM instead of A8L8_UNORM for block rendering.
Younes Manton [Wed, 30 Jul 2008 20:47:10 +0000 (16:47 -0400)]
g3dvl: Use R16_SNORM instead of A8L8_UNORM for block rendering.

16 years agog3dvl: Recursively build dependencies.
Younes Manton [Sat, 26 Jul 2008 20:51:09 +0000 (16:51 -0400)]
g3dvl: Recursively build dependencies.

Run `make` in src/libXvMC and everything should be built for Nouveau.
Run `make DRIVER=softpipe` in src/libXvMC for SoftPipe.

16 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Sat, 26 Jul 2008 14:54:57 +0000 (00:54 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

16 years agogallium: Windows miniport portability fixes.
José Fonseca [Sat, 26 Jul 2008 00:17:10 +0000 (09:17 +0900)]
gallium: Windows miniport portability fixes.

16 years agomesa: glsl: assorted fixes for resolving polymorphic functions
Brian Paul [Fri, 25 Jul 2008 21:33:02 +0000 (15:33 -0600)]
mesa: glsl: assorted fixes for resolving polymorphic functions

Plus,
- fix some issues in casting function arguments to format param types.
- fix some vec/mat constructor bugs
- find/report more syntax/semantic errors

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

16 years agomesa: glsl: re-order some constructors
Brian Paul [Fri, 25 Jul 2008 20:48:36 +0000 (14:48 -0600)]
mesa: glsl: re-order some constructors

16 years agomesa: glsl: remove unneeded operators
Brian Paul [Fri, 25 Jul 2008 20:48:14 +0000 (14:48 -0600)]
mesa: glsl: remove unneeded operators

16 years agomesa: fix issues causing warnings on Windows
Brian Paul [Fri, 25 Jul 2008 14:34:54 +0000 (08:34 -0600)]
mesa: fix issues causing warnings on Windows

16 years agomesa: glsl: additional error detection
Brian Paul [Thu, 24 Jul 2008 23:49:33 +0000 (17:49 -0600)]
mesa: glsl: additional error detection

Plus begin some fixes for vec/matrix constructors.

16 years agomesa: Mark as XXX unresolved warnings on windows.
Michal Krol [Fri, 25 Jul 2008 08:41:53 +0000 (10:41 +0200)]
mesa: Mark as XXX unresolved warnings on windows.

16 years agomesa: gls: fix broken else clause of conditional break/continue
Brian Paul [Thu, 24 Jul 2008 21:49:09 +0000 (15:49 -0600)]
mesa: gls: fix broken else clause of conditional break/continue

In the following case:

   for () {
      if (cond)
         break;  // or continue;
      else
         something;
   }

The "something" block didn't get emitted.

16 years agomesa: move extensions->version code into separate function
Brian Paul [Thu, 24 Jul 2008 21:12:42 +0000 (15:12 -0600)]
mesa: move extensions->version code into separate function

16 years agomesa: don't include Mesa version in GL_SHADING_LANGUAGE_VERSION string
Brian Paul [Thu, 24 Jul 2008 20:28:43 +0000 (14:28 -0600)]
mesa: don't include Mesa version in GL_SHADING_LANGUAGE_VERSION string

16 years agomesa: glsl: only try to link shaders defining main()
Brian Paul [Thu, 24 Jul 2008 20:56:54 +0000 (14:56 -0600)]
mesa: glsl: only try to link shaders defining main()

16 years agog3dvl: Added more XvMC stubs to get mplayer working.
Younes Manton [Thu, 24 Jul 2008 20:50:18 +0000 (16:50 -0400)]
g3dvl: Added more XvMC stubs to get mplayer working.

16 years agoscons: Lookup WINDDK and WINCE SDK directories in the registry.
José Fonseca [Thu, 24 Jul 2008 11:09:54 +0000 (20:09 +0900)]
scons: Lookup WINDDK and WINCE SDK directories in the registry.

16 years agomesa: Prefix main includes with dir to avoid conflicts.
José Fonseca [Wed, 23 Jul 2008 12:06:01 +0000 (21:06 +0900)]
mesa: Prefix main includes with dir to avoid conflicts.

Some of the headers in src/mesa/main have pretty common names which
easily conflict with third-party code, e.g. config.h

16 years agosoftpipe: Remove unused variables.
José Fonseca [Wed, 23 Jul 2008 02:15:54 +0000 (11:15 +0900)]
softpipe: Remove unused variables.

16 years agotgsi: Silent msvc warning.
José Fonseca [Tue, 22 Jul 2008 13:07:22 +0000 (22:07 +0900)]
tgsi: Silent msvc warning.

Rather stupid warning: msvc is warning that converting from a 1bit
structure bitfield to a unsigned char looses precision... /WX makes this
an error.

16 years agomesa: Silence compiler warning on windows.
Michal Krol [Thu, 24 Jul 2008 09:03:05 +0000 (11:03 +0200)]
mesa: Silence compiler warning on windows.

16 years agonv all: Copy shader tokens on create, free on delete.
Younes Manton [Thu, 24 Jul 2008 03:35:23 +0000 (23:35 -0400)]
nv all: Copy shader tokens on create, free on delete.

Must copy token stream on shader create, client is allowed to free
their copy after creating the state object.

16 years agogallium: bump TGSI_EXEC_NUM_TEMPS to 128
Brian Paul [Wed, 23 Jul 2008 22:28:15 +0000 (16:28 -0600)]
gallium: bump TGSI_EXEC_NUM_TEMPS to 128

16 years agomesa: glsl: fix/simplify built-in constant lookup
Brian Paul [Wed, 23 Jul 2008 21:14:22 +0000 (15:14 -0600)]
mesa: glsl: fix/simplify built-in constant lookup

16 years agomesa: glsl: fix/simplify array element handling
Brian Paul [Wed, 23 Jul 2008 21:04:25 +0000 (15:04 -0600)]
mesa: glsl: fix/simplify array element handling

Also fix bug in comparing large structs/arrays.

16 years agomesa: glsl: mark constructor params as const
Brian Paul [Wed, 23 Jul 2008 18:00:48 +0000 (12:00 -0600)]
mesa: glsl: mark constructor params as const

16 years agogallium: print extended swizzle negation flags
Brian Paul [Wed, 23 Jul 2008 15:56:44 +0000 (09:56 -0600)]
gallium: print extended swizzle negation flags

16 years agogallium: fix translation of extended swizzles, per-component negation
Brian Paul [Wed, 23 Jul 2008 15:56:20 +0000 (09:56 -0600)]
gallium: fix translation of extended swizzles, per-component negation

16 years agotgsi: Fix tgsi_util_get_full_src_register_extswizzle().
Michal Krol [Wed, 23 Jul 2008 15:52:56 +0000 (17:52 +0200)]
tgsi: Fix tgsi_util_get_full_src_register_extswizzle().

16 years agoi915: intel_flush_frontbuffer does work
Jakob Bornecrantz [Wed, 23 Jul 2008 12:02:33 +0000 (14:02 +0200)]
i915: intel_flush_frontbuffer does work

16 years agog3dvl: Minor fixes.
Younes Manton [Wed, 23 Jul 2008 06:28:02 +0000 (02:28 -0400)]
g3dvl: Minor fixes.

16 years agonouveau: is_format_supported() interface changes
Ben Skeggs [Wed, 23 Jul 2008 04:14:55 +0000 (14:14 +1000)]
nouveau: is_format_supported() interface changes

16 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Wed, 23 Jul 2008 04:05:22 +0000 (14:05 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

16 years agog3dvl: Add Nouveau winsys, libdriclient.
Younes Manton [Wed, 23 Jul 2008 02:26:26 +0000 (22:26 -0400)]
g3dvl: Add Nouveau winsys, libdriclient.

Nouveau winsys is based on Mesa's Nouveau winsys and soft-links to most of
it. The 'nouveau_context' and 'nouveau_screen' code contains most of the
changes, 'nouveau_winsys_pipe', 'nouveau_swapbuffers' and 'nouveau_lock'
contain some minor changes. The driclient library contains the DRI
userland stuff, most of which was based on Mesa's DRI code.

16 years agog3dvl: Add stubs for some XvMC functions.
Younes Manton [Mon, 21 Jul 2008 01:30:14 +0000 (21:30 -0400)]
g3dvl: Add stubs for some XvMC functions.

Some of these may need to be implemented on the DDX side.

16 years agomesa: glsl: rework swizzle storage handling
Brian Paul [Wed, 23 Jul 2008 00:27:56 +0000 (18:27 -0600)]
mesa: glsl: rework swizzle storage handling

Build on the heirarchal approach implemented for arrays/structs.

16 years agomesa: fix uninitialized var
Brian Paul [Tue, 22 Jul 2008 23:38:55 +0000 (17:38 -0600)]
mesa: fix uninitialized var

16 years agomesa: glsl: implement constructor functions for user-defined types
Brian Paul [Tue, 22 Jul 2008 21:17:10 +0000 (15:17 -0600)]
mesa: glsl: implement constructor functions for user-defined types

16 years agomesa: remove stray debug assertion
Brian Paul [Tue, 22 Jul 2008 17:54:22 +0000 (11:54 -0600)]
mesa: remove stray debug assertion

16 years agotgsi: Fix immediate usage checks.
Michal Krol [Tue, 22 Jul 2008 15:14:54 +0000 (17:14 +0200)]
tgsi: Fix immediate usage checks.
Provide more info for register usage errors/warnings.

16 years agoadd env var to override msaa visual selection
Roland Scheidegger [Sun, 20 Jul 2008 08:49:48 +0000 (10:49 +0200)]
add env var to override msaa visual selection

16 years agomesa: fix glUniform error checking for samplers
Brian [Tue, 22 Jul 2008 02:42:05 +0000 (20:42 -0600)]
mesa: fix glUniform error checking for samplers

16 years agomesa: refactor: move _mesa_Bind/Gen/DeleteProgram() to arbprogram.c
Brian [Wed, 16 Jul 2008 01:54:25 +0000 (19:54 -0600)]
mesa: refactor: move _mesa_Bind/Gen/DeleteProgram() to arbprogram.c

No API-level functions now in program.c.

16 years agowin32kprof: Store the profile data as an caller->callee hash table, instead of a...
José Fonseca [Tue, 22 Jul 2008 00:45:10 +0000 (09:45 +0900)]
win32kprof: Store the profile data as an caller->callee hash table, instead of a trace.

16 years agogallium: Open a new file when existing profile memory map is exhausted.
José Fonseca [Mon, 21 Jul 2008 10:38:25 +0000 (19:38 +0900)]
gallium: Open a new file when existing profile memory map is exhausted.

16 years agowin32kprof: Generate callgraphs.
José Fonseca [Mon, 21 Jul 2008 10:37:16 +0000 (19:37 +0900)]
win32kprof: Generate callgraphs.

Relies on gprof2dot.py.

16 years agowin32kprof: Convert tabs to spaces.
José Fonseca [Mon, 21 Jul 2008 04:02:07 +0000 (13:02 +0900)]
win32kprof: Convert tabs to spaces.

16 years agowin32kprof: Consider the section alignment when estimating the image base.
José Fonseca [Sun, 20 Jul 2008 14:32:00 +0000 (23:32 +0900)]
win32kprof: Consider the section alignment when estimating the image base.

16 years agoadd edge detection to that example
Zack Rusin [Mon, 16 Jun 2008 17:19:41 +0000 (13:19 -0400)]
add edge detection to that example

16 years agomesa: initial support for GLSL struct/array comparisons
Brian Paul [Mon, 21 Jul 2008 23:18:22 +0000 (17:18 -0600)]
mesa: initial support for GLSL struct/array comparisons

16 years agomesa: added null ptr check (error handling case)
Brian Paul [Mon, 21 Jul 2008 22:04:56 +0000 (16:04 -0600)]
mesa: added null ptr check (error handling case)

16 years agomesa: fix +=, -=, etc. operators
Brian Paul [Mon, 21 Jul 2008 22:04:24 +0000 (16:04 -0600)]
mesa: fix +=, -=, etc. operators

16 years agogallium: Temporary workaround for mismatched pipe create and pipe destroy
Jonathan White [Mon, 21 Jul 2008 21:34:38 +0000 (15:34 -0600)]
gallium: Temporary workaround for mismatched pipe create and pipe destroy

16 years agomesa: remove an error check for NV_v_p that doesn't apply to ARB_v_p
Brian Paul [Mon, 21 Jul 2008 20:23:33 +0000 (14:23 -0600)]
mesa: remove an error check for NV_v_p that doesn't apply to ARB_v_p

16 years agomesa: fix some issues in _mesa_validate_program()
Brian Paul [Mon, 21 Jul 2008 20:16:07 +0000 (14:16 -0600)]
mesa: fix some issues in _mesa_validate_program()

16 years agomesa: assorted glsl uniform/attribute fixes
Brian Paul [Mon, 21 Jul 2008 19:58:50 +0000 (13:58 -0600)]
mesa: assorted glsl uniform/attribute fixes

Fix incorrect uniform/attribute size query results.
Add missing error checking for glUniform, glUniformMatrix params
Fix an array size/allocation error.

16 years agomesa: remove debug code
Brian Paul [Mon, 21 Jul 2008 16:25:02 +0000 (10:25 -0600)]
mesa: remove debug code

16 years agotgsi: Update Makefile to include tgsi_iterate.c
Jakob Bornecrantz [Mon, 21 Jul 2008 12:38:57 +0000 (14:38 +0200)]
tgsi: Update Makefile to include tgsi_iterate.c

16 years agonv50: add NV86 and NV94 to list of "supported" chips
Ben Skeggs [Mon, 21 Jul 2008 09:05:55 +0000 (19:05 +1000)]
nv50: add NV86 and NV94 to list of "supported" chips

16 years agog3dvl: Fix some memory leaks in the winsys.
Younes Manton [Sat, 19 Jul 2008 20:22:56 +0000 (16:22 -0400)]
g3dvl: Fix some memory leaks in the winsys.

16 years agog3dvl: Minor SP winsys cleanup.
Younes Manton [Thu, 10 Jul 2008 04:32:18 +0000 (00:32 -0400)]
g3dvl: Minor SP winsys cleanup.

16 years agotgsi: Parse source register extended swizzle.
Michal Krol [Sun, 20 Jul 2008 19:58:07 +0000 (21:58 +0200)]
tgsi: Parse source register extended swizzle.

16 years agotgsi: Add support for branch instructions with target labels.
Michal Krol [Sun, 20 Jul 2008 19:38:20 +0000 (21:38 +0200)]
tgsi: Add support for branch instructions with target labels.

16 years agotgsi: Warn if an indirect register not ADDR[0].
Michal Krol [Sun, 20 Jul 2008 19:28:28 +0000 (21:28 +0200)]
tgsi: Warn if an indirect register not ADDR[0].

16 years agotgsi: Add support for indirect addressing in dump, sanity and text modules.
Michal Krol [Sun, 20 Jul 2008 19:23:04 +0000 (21:23 +0200)]
tgsi: Add support for indirect addressing in dump, sanity and text modules.

16 years agotgsi: Remove redundant code.
Michal Krol [Sun, 20 Jul 2008 17:29:52 +0000 (19:29 +0200)]
tgsi: Remove redundant code.

16 years agotgsi: Use tgsi_iterate in tgsi_dump.
Michal Krol [Sun, 20 Jul 2008 14:43:26 +0000 (16:43 +0200)]
tgsi: Use tgsi_iterate in tgsi_dump.

16 years agotgsi: Keep version and processor info in iterate_ctx.
Michal Krol [Sun, 20 Jul 2008 14:42:57 +0000 (16:42 +0200)]
tgsi: Keep version and processor info in iterate_ctx.

16 years agotgsi: Fix error handling.
Michal Krol [Sun, 20 Jul 2008 14:42:43 +0000 (16:42 +0200)]
tgsi: Fix error handling.

16 years agotgsi: Tidy up and fix tgsi_dump.
Michal Krol [Sun, 20 Jul 2008 14:28:59 +0000 (16:28 +0200)]
tgsi: Tidy up and fix tgsi_dump.

16 years agotgsi: Fix dump enums.
Michal Krol [Sun, 20 Jul 2008 14:12:44 +0000 (16:12 +0200)]
tgsi: Fix dump enums.

16 years agotgsi: Preserve flags parameter for tgsi_dump().
Michal Krol [Sun, 20 Jul 2008 14:08:36 +0000 (16:08 +0200)]
tgsi: Preserve flags parameter for tgsi_dump().

16 years agoscons: List util/tgsi_dump_c.c.
Michal Krol [Sun, 20 Jul 2008 14:07:06 +0000 (16:07 +0200)]
scons: List util/tgsi_dump_c.c.

16 years agotgsi: Split tgsi_dump into two modules.
Michal Krol [Sun, 20 Jul 2008 14:01:50 +0000 (16:01 +0200)]
tgsi: Split tgsi_dump into two modules.

16 years agopipebuffer: More detailed description of bufer over-/undereflows.
José Fonseca [Sun, 20 Jul 2008 09:11:43 +0000 (18:11 +0900)]
pipebuffer: More detailed description of bufer over-/undereflows.

16 years agopython/tests: Check support for non-pot/non-square textures.
José Fonseca [Sun, 20 Jul 2008 00:28:27 +0000 (09:28 +0900)]
python/tests: Check support for non-pot/non-square textures.

16 years agogallium: Fix typo in function name.
José Fonseca [Sun, 20 Jul 2008 00:27:48 +0000 (09:27 +0900)]
gallium: Fix typo in function name.

16 years agoraw2png: Handle r5g6b5 format.
José Fonseca [Sun, 20 Jul 2008 00:27:27 +0000 (09:27 +0900)]
raw2png: Handle r5g6b5 format.

16 years agopython/tests: Specify the right texture target when querying formats.
José Fonseca [Sat, 19 Jul 2008 03:30:54 +0000 (12:30 +0900)]
python/tests: Specify the right texture target when querying formats.

16 years agogallium: Finer grained is_format_supported.
José Fonseca [Sat, 19 Jul 2008 03:04:37 +0000 (12:04 +0900)]
gallium: Finer grained is_format_supported.

16 years agotgsi: Make tgsi_sanity return TRUE on success as documented.
José Fonseca [Sat, 19 Jul 2008 02:52:41 +0000 (11:52 +0900)]
tgsi: Make tgsi_sanity return TRUE on success as documented.

16 years agogallium: Move PIPE_TEXTURE_USAGE* to p_defines.h
José Fonseca [Fri, 18 Jul 2008 23:38:35 +0000 (08:38 +0900)]
gallium: Move PIPE_TEXTURE_USAGE* to p_defines.h

16 years agomesa: glsl: various writemask/swizzle improvements and clean-ups
Brian Paul [Sat, 19 Jul 2008 01:46:19 +0000 (19:46 -0600)]
mesa: glsl: various writemask/swizzle improvements and clean-ups

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.