mesa.git
15 years agotrace: Dump polygon stipple state as an array.
José Fonseca [Mon, 11 Aug 2008 17:09:36 +0000 (18:09 +0100)]
trace: Dump polygon stipple state as an array.

15 years agopython: Bindings for p_compiler.h types.
José Fonseca [Mon, 11 Aug 2008 16:08:53 +0000 (17:08 +0100)]
python: Bindings for p_compiler.h types.

15 years agotrace: Fix create_depth_stencil_alpha_state trace.
José Fonseca [Mon, 11 Aug 2008 16:08:27 +0000 (17:08 +0100)]
trace: Fix create_depth_stencil_alpha_state trace.

15 years agopython: Bindings for pipe_{depth,stencil,alpha}_state.
José Fonseca [Mon, 11 Aug 2008 15:57:50 +0000 (16:57 +0100)]
python: Bindings for pipe_{depth,stencil,alpha}_state.

15 years agotrace: Dump pipe_{depth,stencil,alpha}_state names.
José Fonseca [Mon, 11 Aug 2008 15:56:08 +0000 (16:56 +0100)]
trace: Dump pipe_{depth,stencil,alpha}_state names.

15 years agogallium: Name pipe_depth_stencil_alpha_state member structures.
José Fonseca [Mon, 11 Aug 2008 15:55:30 +0000 (16:55 +0100)]
gallium: Name pipe_depth_stencil_alpha_state member structures.

So that the previously anonymous depth/stencil/alpha structures can be
identified in the traces.

This is just syntactic sugar: it does not break source or binary compatibility.

15 years agopython: Simplify setting the constant buffers.
José Fonseca [Mon, 11 Aug 2008 13:31:04 +0000 (14:31 +0100)]
python: Simplify setting the constant buffers.

15 years agopython: Split the interface definition file in smaller ones.
José Fonseca [Mon, 11 Aug 2008 13:06:24 +0000 (14:06 +0100)]
python: Split the interface definition file in smaller ones.

15 years agopython: Add unsigned arrays.
José Fonseca [Sun, 10 Aug 2008 23:16:20 +0000 (00:16 +0100)]
python: Add unsigned arrays.

15 years agotrace: Replace buffer_map+memcpy+buffer_unmap by buffer_write
José Fonseca [Sun, 10 Aug 2008 23:15:07 +0000 (00:15 +0100)]
trace: Replace buffer_map+memcpy+buffer_unmap by buffer_write

15 years agotrace: Zero the buffers to avoid dumping uninitialized memory.
José Fonseca [Sun, 10 Aug 2008 17:54:10 +0000 (18:54 +0100)]
trace: Zero the buffers to avoid dumping uninitialized memory.

15 years agopython: Allow writing to buffers.
José Fonseca [Sun, 10 Aug 2008 17:52:00 +0000 (18:52 +0100)]
python: Allow writing to buffers.

15 years agotrace: Fix hexadecimal dumping.
José Fonseca [Sun, 10 Aug 2008 17:51:23 +0000 (18:51 +0100)]
trace: Fix hexadecimal dumping.

15 years agotrace: Trace winsys/screen/context creation.
José Fonseca [Sun, 10 Aug 2008 15:24:43 +0000 (16:24 +0100)]
trace: Trace winsys/screen/context creation.

15 years agotrace: Trace texture depth.
José Fonseca [Sun, 10 Aug 2008 15:24:15 +0000 (16:24 +0100)]
trace: Trace texture depth.

15 years agopython: Update the documentation.
José Fonseca [Sat, 9 Aug 2008 14:07:40 +0000 (15:07 +0100)]
python: Update the documentation.

15 years agosoftpipe: Include missing header.
Michal Krol [Tue, 12 Aug 2008 09:30:50 +0000 (11:30 +0200)]
softpipe: Include missing header.

15 years agomesa: glsl: regenerated file
Brian Paul [Mon, 11 Aug 2008 23:10:39 +0000 (17:10 -0600)]
mesa: glsl: regenerated file

15 years agomesa: glsl: change refract() functions to allow inlining
Brian Paul [Mon, 11 Aug 2008 23:10:24 +0000 (17:10 -0600)]
mesa: glsl: change refract() functions to allow inlining

15 years agomesa: glsl: use SGE instead of SGT in step() functions
Brian Paul [Mon, 11 Aug 2008 22:13:39 +0000 (16:13 -0600)]
mesa: glsl: use SGE instead of SGT in step() functions

15 years agomesa: glsl: fix bugs in refract() functions, plus minor optimization
Brian Paul [Mon, 11 Aug 2008 22:07:40 +0000 (16:07 -0600)]
mesa: glsl: fix bugs in refract() functions, plus minor optimization

15 years agoversion 20 of glxext.h
Brian Paul [Mon, 11 Aug 2008 21:10:53 +0000 (15:10 -0600)]
version 20 of glxext.h

15 years agoversion 41 of glext.h
Brian Paul [Mon, 11 Aug 2008 21:10:40 +0000 (15:10 -0600)]
version 41 of glext.h

15 years agomesa: glsl: add missing sampler types in sizeof_glsl_type(), bug 17079
Brian Paul [Mon, 11 Aug 2008 21:10:18 +0000 (15:10 -0600)]
mesa: glsl: add missing sampler types in sizeof_glsl_type(), bug 17079

15 years agogallium: added comment
Brian Paul [Mon, 11 Aug 2008 21:05:27 +0000 (15:05 -0600)]
gallium: added comment

15 years agogallium: added _NEW_PROGRAM to dependencies
Brian Paul [Mon, 11 Aug 2008 21:04:55 +0000 (15:04 -0600)]
gallium: added _NEW_PROGRAM to dependencies

15 years agogallium: debug/print vertex tweak
Brian Paul [Mon, 11 Aug 2008 21:01:35 +0000 (15:01 -0600)]
gallium: debug/print vertex tweak

15 years agogallium: emit sprite coords (gl_PointCoord)
Brian Paul [Mon, 11 Aug 2008 20:59:26 +0000 (14:59 -0600)]
gallium: emit sprite coords (gl_PointCoord)

15 years agotrace: Dump writes to pipe_buffers.
José Fonseca [Sat, 9 Aug 2008 10:54:35 +0000 (11:54 +0100)]
trace: Dump writes to pipe_buffers.

15 years agotrace: Prevent tracing internal pipe driver calls.
José Fonseca [Sat, 9 Aug 2008 10:53:56 +0000 (11:53 +0100)]
trace: Prevent tracing internal pipe driver calls.

15 years agogallium: Invert include order.
José Fonseca [Sat, 9 Aug 2008 10:53:16 +0000 (11:53 +0100)]
gallium: Invert include order.

15 years agotrace: Dump shaders as text.
José Fonseca [Sat, 9 Aug 2008 10:52:53 +0000 (11:52 +0100)]
trace: Dump shaders as text.

15 years agotgsi: Dump shaders to a string too.
José Fonseca [Sat, 9 Aug 2008 10:52:27 +0000 (11:52 +0100)]
tgsi: Dump shaders to a string too.

Again.

15 years agoutil: Utility functions to print to a string buffer without overflowing.
José Fonseca [Sat, 9 Aug 2008 10:51:29 +0000 (11:51 +0100)]
util: Utility functions to print to a string buffer without overflowing.

15 years agotrace: Allow to dump binary data.
José Fonseca [Fri, 8 Aug 2008 22:53:53 +0000 (23:53 +0100)]
trace: Allow to dump binary data.

15 years agotrace: Trace pipe_winsys calls.
José Fonseca [Fri, 8 Aug 2008 22:11:56 +0000 (23:11 +0100)]
trace: Trace pipe_winsys calls.

15 years agotrace: Remove unused code.
José Fonseca [Fri, 8 Aug 2008 21:13:13 +0000 (22:13 +0100)]
trace: Remove unused code.

15 years agomesa: fix some feature tests
Brian Paul [Fri, 8 Aug 2008 19:06:54 +0000 (13:06 -0600)]
mesa: fix some feature tests

15 years agomesa: fix some pixel transfer state tests for depth formats
Brian Paul [Fri, 8 Aug 2008 18:29:48 +0000 (12:29 -0600)]
mesa: fix some pixel transfer state tests for depth formats

15 years agogallium: fix additional glCopyTex[Sub]Image issues
Brian Paul [Fri, 8 Aug 2008 16:39:56 +0000 (10:39 -0600)]
gallium: fix additional glCopyTex[Sub]Image issues

Use the TexFormat->StoreImage() routine for fallbacks.  This handles the
case of copying RGBA framebuffer data into an RGBA texture when the base
format is GL_RGB (or GL_LUMINANCE, etc).  In that case, we need to set
the texture's alpha=1 and override the framebuffer's alpha.

15 years agomesa: fix out-of-bounds memory reads in swizzle_copy()
Brian Paul [Fri, 8 Aug 2008 15:08:44 +0000 (09:08 -0600)]
mesa: fix out-of-bounds memory reads in swizzle_copy()

15 years agotrace: Prevent from internal calls from pipe_context to pipe_screen from being traced.
José Fonseca [Fri, 8 Aug 2008 11:31:23 +0000 (12:31 +0100)]
trace: Prevent from internal calls from pipe_context to pipe_screen from being traced.

15 years agogallium: Add destroy callback to all *_winsys interfaces.
José Fonseca [Fri, 8 Aug 2008 11:23:21 +0000 (12:23 +0100)]
gallium: Add destroy callback to all *_winsys interfaces.

For consistency and to simplify these objects' destruction.

15 years agoi965: Remove extraneous arg to debug_printf.
José Fonseca [Thu, 7 Aug 2008 22:32:45 +0000 (23:32 +0100)]
i965: Remove extraneous arg to debug_printf.

15 years agogallium: clean-up, remove dead code, update comments
Brian Paul [Thu, 7 Aug 2008 23:59:41 +0000 (17:59 -0600)]
gallium: clean-up, remove dead code, update comments

15 years agogallium: use PIPE_FORMAT_X8Z24_UNORM for 24-bit Z but no stencil
Brian Paul [Thu, 7 Aug 2008 21:11:54 +0000 (15:11 -0600)]
gallium: use PIPE_FORMAT_X8Z24_UNORM for 24-bit Z but no stencil

15 years agosoftpipe: add support for PIPE_FORMAT_X8Z24_UNORM, PIPE_FORMAT_Z24X8_UNORM
Brian Paul [Thu, 7 Aug 2008 21:05:13 +0000 (15:05 -0600)]
softpipe: add support for PIPE_FORMAT_X8Z24_UNORM, PIPE_FORMAT_Z24X8_UNORM

15 years agotrace: Simplify HTML output.
José Fonseca [Thu, 7 Aug 2008 19:57:03 +0000 (20:57 +0100)]
trace: Simplify HTML output.

15 years agotrace: Merge the CSS into the XSL.
José Fonseca [Thu, 7 Aug 2008 18:58:20 +0000 (19:58 +0100)]
trace: Merge the CSS into the XSL.

15 years agotrace: Dump format names.
José Fonseca [Thu, 7 Aug 2008 18:46:39 +0000 (19:46 +0100)]
trace: Dump format names.

15 years agogallium: s/pf_sprint_name/pf_name/
Brian Paul [Thu, 7 Aug 2008 19:35:21 +0000 (13:35 -0600)]
gallium: s/pf_sprint_name/pf_name/

15 years agogallium: fix a few bugs on the fallback CopyTex[Sub]Image() path.
Brian Paul [Thu, 7 Aug 2008 19:32:11 +0000 (13:32 -0600)]
gallium: fix a few bugs on the fallback CopyTex[Sub]Image() path.

15 years agogallium: s/printf/debug_printf/
Brian Paul [Thu, 7 Aug 2008 19:31:57 +0000 (13:31 -0600)]
gallium: s/printf/debug_printf/

15 years agogallium: new/better debug code (disabled)
Brian Paul [Thu, 7 Aug 2008 19:30:49 +0000 (13:30 -0600)]
gallium: new/better debug code (disabled)

15 years agogallium: implement a bunch of missing put_tile functions
Brian Paul [Thu, 7 Aug 2008 19:30:24 +0000 (13:30 -0600)]
gallium: implement a bunch of missing put_tile functions

15 years agogallium: enable the call to r16_put_tile_rgba(), silences warning
Brian Paul [Thu, 7 Aug 2008 17:04:05 +0000 (11:04 -0600)]
gallium: enable the call to r16_put_tile_rgba(), silences warning

15 years agomesa: fix glBindTexture comment/error string
Brian Paul [Thu, 7 Aug 2008 16:29:11 +0000 (10:29 -0600)]
mesa: fix glBindTexture comment/error string

15 years agomesa: glsl: regenerated files
Brian Paul [Thu, 7 Aug 2008 16:26:56 +0000 (10:26 -0600)]
mesa: glsl: regenerated files

15 years agomesa: glsl: finish up support for precision qualifiers
Brian Paul [Thu, 7 Aug 2008 16:26:35 +0000 (10:26 -0600)]
mesa: glsl: finish up support for precision qualifiers

15 years agomesa: pf_sprint_name->pf_name.
José Fonseca [Thu, 7 Aug 2008 18:25:54 +0000 (19:25 +0100)]
mesa: pf_sprint_name->pf_name.

15 years agogallium: Simplify format->name conversion.
José Fonseca [Thu, 7 Aug 2008 18:25:28 +0000 (19:25 +0100)]
gallium: Simplify format->name conversion.

15 years agotrace: Dump state.
José Fonseca [Thu, 7 Aug 2008 17:55:05 +0000 (18:55 +0100)]
trace: Dump state.

15 years agotrace: Trace pipe context calls.
José Fonseca [Thu, 7 Aug 2008 12:20:02 +0000 (13:20 +0100)]
trace: Trace pipe context calls.

15 years agoraw2png: Fix channel order in a8b8g8r8/x8b8g8r8 formats.
José Fonseca [Thu, 7 Aug 2008 07:50:50 +0000 (08:50 +0100)]
raw2png: Fix channel order in a8b8g8r8/x8b8g8r8 formats.

15 years agotrace: Add missing XSL and CSS.
José Fonseca [Wed, 6 Aug 2008 20:39:25 +0000 (21:39 +0100)]
trace: Add missing XSL and CSS.

15 years agoxlib: Integrate with the trace pipe driver.
José Fonseca [Wed, 6 Aug 2008 20:37:00 +0000 (21:37 +0100)]
xlib: Integrate with the trace pipe driver.

15 years agotrace: New pipe driver to trace incoming calls.
José Fonseca [Wed, 6 Aug 2008 20:36:25 +0000 (21:36 +0100)]
trace: New pipe driver to trace incoming calls.

Only pipe_screen calls traced, and only linux supported, for now.

15 years agopipebuffer: Add an extra assertion to ensure buffers do not jump between lists.
José Fonseca [Wed, 6 Aug 2008 13:51:15 +0000 (14:51 +0100)]
pipebuffer: Add an extra assertion to ensure buffers do not jump between lists.

15 years agoraw2png: support some depth formats.
José Fonseca [Wed, 6 Aug 2008 13:48:53 +0000 (14:48 +0100)]
raw2png: support some depth formats.

15 years agogallium: New function to dump surfaces.
José Fonseca [Wed, 6 Aug 2008 13:48:11 +0000 (14:48 +0100)]
gallium: New function to dump surfaces.

15 years agomesa: Extend GLSL syntax to accept type precision in full type specifiers.
Michal Krol [Thu, 7 Aug 2008 14:49:54 +0000 (16:49 +0200)]
mesa: Extend GLSL syntax to accept type precision in full type specifiers.

15 years agomesa: Silence compiler warnings on Windows.
Michal Krol [Thu, 7 Aug 2008 14:23:15 +0000 (16:23 +0200)]
mesa: Silence compiler warnings on Windows.

15 years agosoftpipe: Silence compiler warnings on Windows.
Michal Krol [Thu, 7 Aug 2008 14:22:34 +0000 (16:22 +0200)]
softpipe: Silence compiler warnings on Windows.

15 years agogallium: fix clipping/stride bugs in pipe_get_tile_raw(), pipe_put_tile_raw()
Brian Paul [Thu, 7 Aug 2008 01:15:10 +0000 (19:15 -0600)]
gallium: fix clipping/stride bugs in pipe_get_tile_raw(), pipe_put_tile_raw()

We need to compute the default dst_stride and src_stride _before_ clipping.
After clipping, the width value may have changed.
This fixes visible tile glitches in some demos like progs/glsl/texdemo.c

15 years agogallium: added PIPE_CAP_TEXTURE_MIRROR_CLAMP, PIPE_CAP_TEXTURE_MIRROR_REPEAT
Brian Paul [Wed, 6 Aug 2008 23:22:29 +0000 (17:22 -0600)]
gallium: added PIPE_CAP_TEXTURE_MIRROR_CLAMP, PIPE_CAP_TEXTURE_MIRROR_REPEAT

Check for these caps in state tracker and enable corresponding GL extensions
if supported.

15 years agosoftpipe: add texture border color code
Brian Paul [Wed, 6 Aug 2008 23:14:22 +0000 (17:14 -0600)]
softpipe: add texture border color code

15 years agoegl: define vsnprintf
Jonathan White [Wed, 6 Aug 2008 22:42:38 +0000 (16:42 -0600)]
egl: define vsnprintf

15 years agoegl: fixes for Windows
Jonathan White [Wed, 6 Aug 2008 22:37:49 +0000 (16:37 -0600)]
egl: fixes for Windows

15 years agomesa: glsl: regenerated file
Brian Paul [Wed, 6 Aug 2008 22:29:50 +0000 (16:29 -0600)]
mesa: glsl: regenerated file

15 years agomesa: glsl: report 'Syntax Error' instead of 'Invalid external declaration'
Brian Paul [Wed, 6 Aug 2008 22:29:40 +0000 (16:29 -0600)]
mesa: glsl: report 'Syntax Error' instead of 'Invalid external declaration'

15 years agomesa: glsl: additional error checking
Brian Paul [Wed, 6 Aug 2008 22:29:10 +0000 (16:29 -0600)]
mesa: glsl: additional error checking

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

15 years agoegl: fix version handling
Jonathan White [Wed, 6 Aug 2008 19:40:03 +0000 (13:40 -0600)]
egl: fix version handling

15 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

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

15 years agomesa: glsl: check for rect tex samplers
Brian Paul [Wed, 6 Aug 2008 18:21:25 +0000 (12:21 -0600)]
mesa: glsl: check for rect tex samplers

15 years agomesa: glsl: disallow initializers for varying vars
Brian Paul [Wed, 6 Aug 2008 17:58:52 +0000 (11:58 -0600)]
mesa: glsl: disallow initializers for varying vars

15 years agomesa: glsl: more type checking for attribute/varying/uniform vars/locals
Brian Paul [Wed, 6 Aug 2008 17:45:42 +0000 (11:45 -0600)]
mesa: glsl: more type checking for attribute/varying/uniform vars/locals

15 years agomesa: glsl: check that attribute vars are of float/vec/mat type
Brian Paul [Wed, 6 Aug 2008 17:22:36 +0000 (11:22 -0600)]
mesa: glsl: check that attribute vars are of float/vec/mat type

15 years agomesa: glsl: more assignment type checking
Brian Paul [Wed, 6 Aug 2008 17:15:55 +0000 (11:15 -0600)]
mesa: glsl: more assignment type checking

Also that const declarations have initializers and that uniforms/samplers
can't have initializers.

15 years agomesa: glsl: fix SLANG_OPER_VARIABLE_DECL type checking case
Brian Paul [Wed, 6 Aug 2008 17:15:42 +0000 (11:15 -0600)]
mesa: glsl: fix SLANG_OPER_VARIABLE_DECL type checking case

15 years agomesa: glsl: count number of temp regs used
Haihao Xiang [Wed, 6 Aug 2008 15:05:09 +0000 (09:05 -0600)]
mesa: glsl: count number of temp regs used

15 years agofix some FBO/texture queries (bug 15296)
Brian Paul [Wed, 6 Aug 2008 14:39:54 +0000 (08:39 -0600)]
fix some FBO/texture queries (bug 15296)

15 years agomesa: glsl: code consolidation in _slang_gen_declaration()
Brian Paul [Wed, 6 Aug 2008 02:56:18 +0000 (20:56 -0600)]
mesa: glsl: code consolidation in _slang_gen_declaration()

15 years agomesa: glsl: disallow user-defined functions/vars prefixed with gl_
Brian Paul [Wed, 6 Aug 2008 02:28:14 +0000 (20:28 -0600)]
mesa: glsl: disallow user-defined functions/vars prefixed with gl_

15 years agomesa: glsl: additional type checking for assignments, inequalities
Brian Paul [Wed, 6 Aug 2008 02:12:50 +0000 (20:12 -0600)]
mesa: glsl: additional type checking for assignments, inequalities

15 years agomesa: glsl: generate error for main(any args)
Brian Paul [Wed, 6 Aug 2008 02:00:59 +0000 (20:00 -0600)]
mesa: glsl: generate error for main(any args)

15 years agoegl: changes for Windows
Jonathan White [Wed, 6 Aug 2008 01:22:09 +0000 (19:22 -0600)]
egl: changes for Windows

15 years agoegl: added snprintf, strcasecmp defines
Jonathan White [Wed, 6 Aug 2008 01:20:43 +0000 (19:20 -0600)]
egl: added snprintf, strcasecmp defines

15 years agomesa: glsl: regenerated file
Brian Paul [Tue, 5 Aug 2008 22:59:22 +0000 (16:59 -0600)]
mesa: glsl: regenerated file