mesa.git
13 years agoRemove executables from source tree.
José Fonseca [Tue, 18 Jan 2011 15:05:57 +0000 (15:05 +0000)]
Remove executables from source tree.

13 years agor600c: preserve correct buffer when using fbo
Andre Maasikas [Tue, 18 Jan 2011 14:05:45 +0000 (16:05 +0200)]
r600c: preserve correct buffer when using fbo

Hopefully better than previous - this passes more mipgen tests

13 years agor600: set border color as RGBA
Andre Maasikas [Tue, 18 Jan 2011 14:04:43 +0000 (16:04 +0200)]
r600: set border color as RGBA

border color is RGBA for samples - this passes texenv tests

13 years agor600c: use STATE_FB_WPOS_Y_TRANSFORM variable to do wpos transform
Andre Maasikas [Tue, 18 Jan 2011 14:02:45 +0000 (16:02 +0200)]
r600c: use STATE_FB_WPOS_Y_TRANSFORM variable to do wpos transform

use introduced STATE_FB_WPOS_Y_TRANSFORM variable (thanks Marek)
this gets coords also right when using fbo

13 years agoi965: Fix dead pointers to fp->Parameters->ParameterValues[] after realloc.
Eric Anholt [Tue, 18 Jan 2011 00:02:58 +0000 (16:02 -0800)]
i965: Fix dead pointers to fp->Parameters->ParameterValues[] after realloc.

Fixes texrect-many regression with ff_fragment_shader -- as we added
refs to the subsequent texcoord scaling paramters, the array got
realloced to a new address while our params[] still pointed at the old
location.

13 years agollvmpipe: enable PIPE_CAP_INDEP_BLEND_FUNC
Brian Paul [Mon, 17 Jan 2011 23:42:43 +0000 (16:42 -0700)]
llvmpipe: enable PIPE_CAP_INDEP_BLEND_FUNC

The driver was saying that independend blend functions was not supported,
but it really was.  The driver was using the per-target independend blend
factors but the state tracker was only setting the 0th one (per the
Gallium spec).

Fixes a piglit fbo-drawbuffers2-blend regression.
See https://bugs.freedesktop.org/show_bug.cgi?id=33215

13 years agost/mesa: move PIPE_CAP_INDEP_BLEND_FUNC code
Brian Paul [Mon, 17 Jan 2011 23:29:28 +0000 (16:29 -0700)]
st/mesa: move PIPE_CAP_INDEP_BLEND_FUNC code

13 years agodoxygen: Add doxyfile for glsl module
Chad Versace [Mon, 17 Jan 2011 21:52:40 +0000 (13:52 -0800)]
doxygen: Add doxyfile for glsl module

13 years agoglsl: Refresh autogenerated parser files
Chad Versace [Mon, 17 Jan 2011 17:42:08 +0000 (09:42 -0800)]
glsl: Refresh autogenerated parser files

13 years agoglsl: Remove redundant semantic check in parser
Chad Versace [Mon, 17 Jan 2011 05:55:01 +0000 (21:55 -0800)]
glsl: Remove redundant semantic check in parser

The removed semantic check also exists in ast_type_specifier::hir(), which
is a more natural location for it.

The check verified that precision statements are applied only to types
float and int.

13 years agoglsl: Add support for default precision statements
Chad Versace [Mon, 17 Jan 2011 05:44:57 +0000 (21:44 -0800)]
glsl: Add support for default precision statements

* Add new field ast_type_specifier::is_precision_statement.
* Add semantic checks in ast_type_specifier::hir().
* Alter parser rules accordingly.

13 years agoglsl: Add semantic checks for precision qualifiers
Chad Versace [Mon, 17 Jan 2011 06:38:45 +0000 (22:38 -0800)]
glsl: Add semantic checks for precision qualifiers

* Check that precision qualifiers only appear in language versions 1.00,
  1.30, and later.
* Check that precision qualifiers do not apply to bools and structs.

Fixes the following Piglit tests:
* spec/glsl-1.30/precision-qualifiers/precision-bool-01.frag
* spec/glsl-1.30/precision-qualifiers/precision-struct-01.frag
* spec/glsl-1.30/precision-qualifiers/precision-struct-02.frag

13 years agoglsl: Fix parser rule for type_specifier
Chad Versace [Mon, 17 Jan 2011 06:08:56 +0000 (22:08 -0800)]
glsl: Fix parser rule for type_specifier

Do not assign a value to ast_type_specifier::precision when no precision
qualifier is present.

13 years agoglsl: Change default value of ast_type_specifier::precision
Chad Versace [Fri, 14 Jan 2011 17:50:55 +0000 (09:50 -0800)]
glsl: Change default value of ast_type_specifier::precision

Change default value to ast_precision_none, which denotes the absence of
a precision of a qualifier.

Previously, the default value was ast_precision_high. This made it
impossible to detect if a precision qualifier was present or not.

13 years agoglsl: Check that 'centroid in' does not occur in vertex shader
Chad Versace [Wed, 12 Jan 2011 02:24:17 +0000 (18:24 -0800)]
glsl: Check that 'centroid in' does not occur in vertex shader

The check is performed only in GLSL versions >= 1.30.

From section 4.3.4 of the GLSL 1.30 spec:
   "It is an error to use centroid in in a vertex shader."

Fixes Piglit test
spec/glsl-1.30/compiler/storage-qualifiers/vs-centroid-in-01.vert

13 years agoglsl: Check that interpolation quals only apply to vertex ins and fragment outs
Chad Versace [Wed, 12 Jan 2011 02:13:26 +0000 (18:13 -0800)]
glsl: Check that interpolation quals only apply to vertex ins and fragment outs

The check is performed only in GLSL versions >= 1.30.

Fixes the following Piglit tests:
* spec/glsl-1.30/compiler/interpolation-qualifiers/fs-smooth-02.frag
* spec/glsl-1.30/compiler/interpolation-qualifiers/vs-smooth-01.vert

13 years agoglsl: Check that interpolation qualifiers do not precede 'varying'
Chad Versace [Wed, 12 Jan 2011 01:21:18 +0000 (17:21 -0800)]
glsl: Check that interpolation qualifiers do not precede 'varying'

... and 'centroid varying'. The check is performed only in GLSL
versions >= 1.30.

From page 29 (page 35 of the PDF) of the GLSL 1.30 spec:
   "interpolation qualifiers may only precede the qualifiers in, centroid
    in, out, or centroid out in a declaration. They do not apply to the
    deprecated storage qualifiers varying or centroid varying."

Fixes Piglit test
spec/glsl-1.30/compiler/interpolation-qualifiers/smooth-varying-01.frag.

13 years agoglsl: Add method ast_type_qualifier::interpolation_string()
Chad Versace [Wed, 12 Jan 2011 00:59:24 +0000 (16:59 -0800)]
glsl: Add method ast_type_qualifier::interpolation_string()

If an interpolation qualifier is present, then the method returns that
qualifier's string representation. For example, if the noperspective bit
is set, then it returns "noperspective".

13 years agovbo: init num_instances in split_prims()
Brian Paul [Mon, 17 Jan 2011 16:56:56 +0000 (09:56 -0700)]
vbo: init num_instances in split_prims()

Fixes a VTK regression after adding GL_ARB_draw_instanced.

13 years agotnl: assert that num_instances > 0
Brian Paul [Mon, 17 Jan 2011 16:40:16 +0000 (09:40 -0700)]
tnl: assert that num_instances > 0

13 years agomesa: s/primcount/numInstances/
Brian Paul [Mon, 17 Jan 2011 16:33:47 +0000 (09:33 -0700)]
mesa: s/primcount/numInstances/

primcount is also a parameter to glMultiDrawElements().  Use numInstances
to avoid confusion between these things.

13 years agonouveau: fix build against out of tree libdrm
Dave Airlie [Mon, 17 Jan 2011 05:41:49 +0000 (15:41 +1000)]
nouveau: fix build against out of tree libdrm

For doing builds against a separated libdrm these cflags are needed.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600g: fix PIPE_CAP_INSTANCED_DRAWING warning
Christian König [Sun, 16 Jan 2011 22:52:53 +0000 (23:52 +0100)]
r600g: fix PIPE_CAP_INSTANCED_DRAWING warning

13 years agor600g: fix alu inst group merging for relative adressing
Christian König [Sun, 16 Jan 2011 20:21:41 +0000 (21:21 +0100)]
r600g: fix alu inst group merging for relative adressing

13 years agonvc0: fix and enable instanced drawing and arrays
Christoph Bumiller [Sun, 16 Jan 2011 13:10:46 +0000 (14:10 +0100)]
nvc0: fix and enable instanced drawing and arrays

13 years agod3d1x: Fix broken build.
Chia-I Wu [Sun, 16 Jan 2011 09:34:40 +0000 (17:34 +0800)]
d3d1x: Fix broken build.

st/egl native.h changed its interface in
a22a332fc7cc54d4d0973dcd21a90159cc51de1a.

13 years agomesa: minor tweaks in _mesa_set_fetch_functions()
Brian Paul [Sun, 16 Jan 2011 03:41:26 +0000 (20:41 -0700)]
mesa: minor tweaks in _mesa_set_fetch_functions()

13 years agomesa: add comment for _mesa_get_srgb_format_linear()
Brian Paul [Sun, 16 Jan 2011 03:41:06 +0000 (20:41 -0700)]
mesa: add comment for _mesa_get_srgb_format_linear()

13 years agomesa: move declarations before code
Brian Paul [Sun, 16 Jan 2011 03:37:57 +0000 (20:37 -0700)]
mesa: move declarations before code

13 years agodocs: add GL_EXT_texture_sRGB_decode to relnotes
Dave Airlie [Sun, 16 Jan 2011 02:54:57 +0000 (12:54 +1000)]
docs: add GL_EXT_texture_sRGB_decode to relnotes

13 years agogallium: add EXT_texture_sRGB_decode.
Dave Airlie [Thu, 13 Jan 2011 07:22:54 +0000 (17:22 +1000)]
gallium: add EXT_texture_sRGB_decode.

This uses a sampler view to access the texture with the alternate format.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agoi965: add support for EXT_texture_sRGB_decode
Dave Airlie [Thu, 13 Jan 2011 05:54:29 +0000 (15:54 +1000)]
i965: add support for EXT_texture_sRGB_decode

We just choose the texture format depending on the srgb decode bit
for the sRGB formats.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agomesa/swrast: implement EXT_texture_sRGB_decode
Dave Airlie [Thu, 13 Jan 2011 02:12:21 +0000 (12:12 +1000)]
mesa/swrast: implement EXT_texture_sRGB_decode

This implements the extension by choosing a different set of texture
fetch functions when the texture parameter changes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agor600d: fix some bugs added reworking literal handling
Christian König [Sun, 16 Jan 2011 00:45:06 +0000 (01:45 +0100)]
r600d: fix some bugs added reworking literal handling

If a literal slot isn't used it should be set
to 0 instead of an uninitialized value. Also the
channels for pre R700 trig functions were incorrect.
And most important literals were not counted against ndw,
resulting in an invalid force_add_cf detection.

13 years agodocs: document GL_ARB_draw_buffers_blend
Brian Paul [Sun, 16 Jan 2011 01:33:01 +0000 (18:33 -0700)]
docs: document GL_ARB_draw_buffers_blend

13 years agomesa: implement glGet queries for GL_ARB_draw_buffers_blend
Brian Paul [Wed, 12 Jan 2011 15:08:22 +0000 (08:08 -0700)]
mesa: implement glGet queries for GL_ARB_draw_buffers_blend

13 years agomesa: display list support for GL_ARB_draw_buffers_blend functions
Brian Paul [Sun, 16 Jan 2011 01:25:19 +0000 (18:25 -0700)]
mesa: display list support for GL_ARB_draw_buffers_blend functions

13 years agomesa: plug in GL_ARB_draw_buffers_blend functions
Brian Paul [Wed, 12 Jan 2011 03:56:01 +0000 (20:56 -0700)]
mesa: plug in GL_ARB_draw_buffers_blend functions

13 years agoglapi: regenerated files
Brian Paul [Wed, 12 Jan 2011 03:55:42 +0000 (20:55 -0700)]
glapi: regenerated files

13 years agoglapi: new entrypoint specs for GL_ARB_draw_buffers_blend
Brian Paul [Wed, 12 Jan 2011 03:55:19 +0000 (20:55 -0700)]
glapi: new entrypoint specs for GL_ARB_draw_buffers_blend

13 years agomesa: begin implementation of GL_ARB_draw_buffers_blend
Brian Paul [Tue, 11 Jan 2011 22:07:38 +0000 (15:07 -0700)]
mesa: begin implementation of GL_ARB_draw_buffers_blend

13 years agodocs: update GL3.txt status
Brian Paul [Sun, 16 Jan 2011 00:41:43 +0000 (17:41 -0700)]
docs: update GL3.txt status

13 years agodocs: document GL_ARB_instanced_arrays
Brian Paul [Sun, 16 Jan 2011 00:40:56 +0000 (17:40 -0700)]
docs: document GL_ARB_instanced_arrays

13 years agost/mesa: GL_ARB_instanced_arrays support
Brian Paul [Sun, 16 Jan 2011 00:35:08 +0000 (17:35 -0700)]
st/mesa: GL_ARB_instanced_arrays support

13 years agomesa: support for GL_ARB_instanced_arrays
Brian Paul [Sat, 15 Jan 2011 17:32:34 +0000 (10:32 -0700)]
mesa: support for GL_ARB_instanced_arrays

13 years agoglapi: regenerated files
Brian Paul [Sat, 15 Jan 2011 17:32:34 +0000 (10:32 -0700)]
glapi: regenerated files

13 years agoglapi: GL_ARB_instanced_arrays support
Brian Paul [Sat, 15 Jan 2011 17:32:34 +0000 (10:32 -0700)]
glapi: GL_ARB_instanced_arrays support

13 years agodraw: add missing LP_CHECK_MEMBER_OFFSET()
Brian Paul [Sun, 16 Jan 2011 00:33:19 +0000 (17:33 -0700)]
draw: add missing LP_CHECK_MEMBER_OFFSET()

13 years agost/mesa: move/consolidate an assignment
Brian Paul [Sun, 16 Jan 2011 00:23:13 +0000 (17:23 -0700)]
st/mesa: move/consolidate an assignment

13 years agodocs: document GL_ARB_draw_instanced
Brian Paul [Sat, 15 Jan 2011 17:26:25 +0000 (10:26 -0700)]
docs: document GL_ARB_draw_instanced

13 years agor600g: Remove the redundant radeon_new() prototype.
Henri Verbeet [Sat, 15 Jan 2011 18:39:52 +0000 (19:39 +0100)]
r600g: Remove the redundant radeon_new() prototype.

13 years agor600g: Fix some register value name typos.
Henri Verbeet [Sat, 15 Jan 2011 18:39:52 +0000 (19:39 +0100)]
r600g: Fix some register value name typos.

SFR -> SRF.

13 years agor600g: Get rid of r600_translate_vertex_data_type().
Henri Verbeet [Sat, 15 Jan 2011 18:39:52 +0000 (19:39 +0100)]
r600g: Get rid of r600_translate_vertex_data_type().

This has been replaced with r600_vertex_data_type().

13 years agoMerge branch 'draw-instanced'
Brian Paul [Sat, 15 Jan 2011 17:24:08 +0000 (10:24 -0700)]
Merge branch 'draw-instanced'

Conflicts:
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/drivers/llvmpipe/lp_state_fs.c
src/glsl/ir_set_program_inouts.cpp
src/mesa/tnl/t_vb_program.c

13 years agonvc0: try to swap immediates to first source too
Christoph Bumiller [Sat, 15 Jan 2011 13:10:27 +0000 (14:10 +0100)]
nvc0: try to swap immediates to first source too

13 years agonvc0: make sure all sources of the BIND op are distinct
Christoph Bumiller [Sat, 15 Jan 2011 13:03:05 +0000 (14:03 +0100)]
nvc0: make sure all sources of the BIND op are distinct

They're supposed to be assigned consecutive registers so they can't
contain the same SSA value more than once.

13 years agonvc0: update user vbufs on each draw call
Christoph Bumiller [Sat, 15 Jan 2011 11:18:52 +0000 (12:18 +0100)]
nvc0: update user vbufs on each draw call

This is required in case set_vertex_buffers is not called again.

13 years agonvc0: enable early fragment tests where possible
Christoph Bumiller [Thu, 13 Jan 2011 20:03:18 +0000 (21:03 +0100)]
nvc0: enable early fragment tests where possible

13 years agonvc0: upload small buffers through the command buffer
Christoph Bumiller [Sat, 15 Jan 2011 11:17:00 +0000 (12:17 +0100)]
nvc0: upload small buffers through the command buffer

13 years agomesa: Add glDepthRangef and glClearDepthf to APIspec.xml.
Chia-I Wu [Sat, 15 Jan 2011 04:39:24 +0000 (12:39 +0800)]
mesa: Add glDepthRangef and glClearDepthf to APIspec.xml.

Core mesa has gained support for GL_ARB_ES2_compatibility.  Make GLES
generated dispatch table use them.

13 years agotargets/egl-static: Assorted cleanups and fixes.
Chia-I Wu [Fri, 14 Jan 2011 19:15:41 +0000 (03:15 +0800)]
targets/egl-static: Assorted cleanups and fixes.

Share more code between windows and non-windows platforms.  Check
env['x11'] for X11 and add env['X11_LIBS'] to LIBS.  Add ws_wrapper for
i965g.

13 years agotargets/egl: i965 needs libwsw.
Chia-I Wu [Fri, 14 Jan 2011 19:24:15 +0000 (03:24 +0800)]
targets/egl: i965 needs libwsw.

Fix undefined symbol wrapper_sw_winsys_dewrap_pipe_screen.

13 years agomesa: Add getter for GL_SHADER_COMPILER with ARB_ES2_compatibility.
Eric Anholt [Sat, 15 Jan 2011 00:18:51 +0000 (16:18 -0800)]
mesa: Add getter for GL_SHADER_COMPILER with ARB_ES2_compatibility.

Fixes piglit arb_es2_compatibility-shadercompiler

13 years agomesa: Add getters for ARB_ES2_compatibility MAX_*_VECTORS.
Eric Anholt [Sat, 15 Jan 2011 00:12:18 +0000 (16:12 -0800)]
mesa: Add getters for ARB_ES2_compatibility MAX_*_VECTORS.

Fixes piglit arb_es2_compatibility-maxvectors.

13 years agomesa: Add support for glDepthRangef and glClearDepthf.
Eric Anholt [Fri, 14 Jan 2011 23:53:38 +0000 (15:53 -0800)]
mesa: Add support for glDepthRangef and glClearDepthf.

These are ARB_ES2_compatibility float variants of the core double
entrypoints.  Fixes arb_es2_compatibility-depthrangef.

13 years agoir_to_mesa: Fix segfaults on ir_to_mesa invocation after MSVC change.
Eric Anholt [Sat, 15 Jan 2011 00:48:19 +0000 (16:48 -0800)]
ir_to_mesa: Fix segfaults on ir_to_mesa invocation after MSVC change.

13 years agoglsl: fix implicit int to bool warning
Brian Paul [Sat, 15 Jan 2011 00:45:23 +0000 (17:45 -0700)]
glsl: fix implicit int to bool warning

Maybe preprocess() should return a bool.

13 years agodocs: skeleton file for 7.11 release notes, add missing links
Brian Paul [Sat, 15 Jan 2011 00:27:17 +0000 (17:27 -0700)]
docs: skeleton file for 7.11 release notes, add missing links

13 years agomesa: Dynamically allocate acp array in ir_to_mesa_visitor::copy_propagate.
Vinson Lee [Sat, 15 Jan 2011 00:18:52 +0000 (16:18 -0800)]
mesa: Dynamically allocate acp array in ir_to_mesa_visitor::copy_propagate.

Fixes these MSVC errors.
ir_to_mesa.cpp(2644) : error C2057: expected constant expression
ir_to_mesa.cpp(2644) : error C2466: cannot allocate an array of constant size 0
ir_to_mesa.cpp(2644) : error C2133: 'acp' : unknown size
ir_to_mesa.cpp(2646) : error C2070: 'ir_to_mesa_instruction *[]': illegal sizeof operand
ir_to_mesa.cpp(2709) : error C2070: 'ir_to_mesa_instruction *[]': illegal sizeof operand
ir_to_mesa.cpp(2718) : error C2070: 'ir_to_mesa_instruction *[]': illegal sizeof operand

13 years agomesa: Add actual support for glReleaseShaderCompiler from ES2.
Eric Anholt [Fri, 14 Jan 2011 23:08:00 +0000 (15:08 -0800)]
mesa: Add actual support for glReleaseShaderCompiler from ES2.

Fixes no-op dispatch warning in piglit
arb_es2_compatibility-releaseshadercompiler.c.

13 years agointel: Expose GL_ARB_ES2_compatibility.
Eric Anholt [Fri, 14 Jan 2011 22:07:28 +0000 (14:07 -0800)]
intel: Expose GL_ARB_ES2_compatibility.

We don't have all of the features of this extension hooked up yet, but
the consensus yesterday was that since those features are things that
we should also be supporting in our ES2 implementation, claiming ES2
here too doesn't make anything worse and will make incremental
improvement through piglit easier.

13 years agomesa: Add extension enable bit for GL_ARB_ES2_compatibility.
Eric Anholt [Fri, 14 Jan 2011 22:50:58 +0000 (14:50 -0800)]
mesa: Add extension enable bit for GL_ARB_ES2_compatibility.

13 years agoglapi: Regenerate for GL_ARB_ES2_compatibility.
Eric Anholt [Fri, 14 Jan 2011 22:03:52 +0000 (14:03 -0800)]
glapi: Regenerate for GL_ARB_ES2_compatibility.

13 years agoglapi: Add entrypoints and enums for GL_ARB_ES2_compatibility.
Eric Anholt [Wed, 4 Aug 2010 01:56:07 +0000 (18:56 -0700)]
glapi: Add entrypoints and enums for GL_ARB_ES2_compatibility.

13 years agor600g: compiler helper opcode fixes for evergreen
Alex Deucher [Fri, 14 Jan 2011 22:47:29 +0000 (17:47 -0500)]
r600g: compiler helper opcode fixes for evergreen

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 years agor600g: pass r600_bc to some addition compiler helper functions
Alex Deucher [Fri, 14 Jan 2011 22:50:29 +0000 (17:50 -0500)]
r600g: pass r600_bc to some addition compiler helper functions

needed for asic specific opcodes

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
13 years agogenerate_builtins.py: Whitespace fixes.
Vinson Lee [Fri, 14 Jan 2011 22:19:02 +0000 (14:19 -0800)]
generate_builtins.py: Whitespace fixes.

Also removed unnecessary semicolons.

13 years agogenerate_builtins.py: Fix builds using Python 2.5.
Vinson Lee [Fri, 14 Jan 2011 22:17:03 +0000 (14:17 -0800)]
generate_builtins.py: Fix builds using Python 2.5.

13 years agoi965: Replace broken handling of dead code with an assert.
Eric Anholt [Fri, 14 Jan 2011 21:17:59 +0000 (13:17 -0800)]
i965: Replace broken handling of dead code with an assert.

This code should never have been triggered, but I often did anyway
when I disabled optimization passes during debugging, then spent my
time debugging that this code doesn't work.

13 years agoi965: Add an invalidation of live intervals after register splitting.
Eric Anholt [Fri, 14 Jan 2011 19:53:38 +0000 (11:53 -0800)]
i965: Add an invalidation of live intervals after register splitting.

No effect, since it was called before live intervals were calculated.

13 years agomesa: Simplify _mesa_base_fbo_format by making it exceptions to teximages.
Eric Anholt [Thu, 13 Jan 2011 18:05:50 +0000 (10:05 -0800)]
mesa: Simplify _mesa_base_fbo_format by making it exceptions to teximages.

The comment of "this is just like teximages except for..." is a pretty
good clue that we're handling this wrong.  By just using the teximage
code, we catch a bunch of cases we'd missed, like GL_RED and GL_RG.

13 years agomesa: Add channel-wise copy propagation to ir_to_mesa.
Eric Anholt [Thu, 13 Jan 2011 02:25:33 +0000 (18:25 -0800)]
mesa: Add channel-wise copy propagation to ir_to_mesa.

This catches more opportunities than the prog_optimize.c code on
openarena's fixed function shaders turned to GLSL, mostly due to
looking at multiple source instructions for copy propagation
opportunities.  It should also be much more CPU efficient than
prog_optimize.c's code.

13 years agoi915: Fix compiler warning from sw fallback removal change.
Eric Anholt [Wed, 12 Jan 2011 20:29:38 +0000 (12:29 -0800)]
i915: Fix compiler warning from sw fallback removal change.

13 years agor600g: Disable V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT_FLOOR case.
Vinson Lee [Fri, 14 Jan 2011 21:47:37 +0000 (13:47 -0800)]
r600g: Disable V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT_FLOOR case.

The usage of macro V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_FLT_TO_INT_FLOOR was
introduced by commit 323ef3a1f07ba4333dadebab571ddcd49d95f45c but the
macro is undefined. Disable this case to fix the build for now.

13 years agogles2: Also support GL_BGRA_EXT for glTexSubImage2d
Kristian Høgsberg [Fri, 14 Jan 2011 21:11:28 +0000 (16:11 -0500)]
gles2: Also support GL_BGRA_EXT for glTexSubImage2d

13 years agor600g: add more missing instructions to r600_bc_get_num_operands
Christian König [Fri, 14 Jan 2011 17:46:11 +0000 (18:46 +0100)]
r600g: add more missing instructions to r600_bc_get_num_operands

13 years agoegl: Fix EGL_VERSION string.
Chia-I Wu [Fri, 14 Jan 2011 06:29:04 +0000 (14:29 +0800)]
egl: Fix EGL_VERSION string.

Fix a copy-and-paste error in a4a38dcf61f141297a083ccac217200947d57b0d.

13 years agoegl: Fix an assertion in _eglUpdateAPIsString.
Chia-I Wu [Fri, 14 Jan 2011 06:11:35 +0000 (14:11 +0800)]
egl: Fix an assertion in _eglUpdateAPIsString.

dpy->ClientAPIs was renamed in a4a38dcf61f141297a083ccac217200947d57b0d.

13 years agoi965: fix fbo-srgb on i965.
Dave Airlie [Thu, 13 Jan 2011 05:46:44 +0000 (15:46 +1000)]
i965: fix fbo-srgb on i965.

Until we get the EXT_framebuffer_sRGB extension we should bind the sRGB
formats for FBO as linear.

Signed-off-by: Dave Airlie <airlied@redhat.com>
13 years agosrgb: fix fbo base format picking.
Dave Airlie [Fri, 14 Jan 2011 04:57:54 +0000 (14:57 +1000)]
srgb: fix fbo base format picking.

Pointed out by Brian.

13 years agoi915: Disable extension OES_standard_derivatives
Chad Versace [Thu, 13 Jan 2011 00:09:37 +0000 (16:09 -0800)]
i915: Disable extension OES_standard_derivatives

OES_standard_derivatives must be manually disabled for i915 because Mesa
enables it by default.

13 years agomesa: Change OES_standard_derivatives to be stand-alone extension
Chad Versace [Wed, 12 Jan 2011 23:47:26 +0000 (15:47 -0800)]
mesa: Change OES_standard_derivatives to be stand-alone extension

Add a bit in struct gl_extensions for OES_standard_derivatives, and enable
the bit by default. Advertise the extension only if the bit is enabled.

Previously, OES_standard_derivatives was advertised in GLES2 contexts
if ARB_framebuffer_object was enabled.

13 years agor600g: Move declaration before code in r600_asm.c.
Vinson Lee [Thu, 13 Jan 2011 22:17:01 +0000 (14:17 -0800)]
r600g: Move declaration before code in r600_asm.c.

Fixes SCons build.

13 years agor600g: rework literal handling
Christian König [Wed, 22 Dec 2010 16:45:51 +0000 (17:45 +0100)]
r600g: rework literal handling

13 years agor600g: merge alu groups
Christian König [Mon, 20 Dec 2010 21:09:09 +0000 (22:09 +0100)]
r600g: merge alu groups

13 years agor600g: implement replacing gpr with pv and ps
Christian König [Sat, 18 Dec 2010 20:32:16 +0000 (21:32 +0100)]
r600g: implement replacing gpr with pv and ps

13 years agoglsl: Emit errors or warnings when 'layout' is used with 'attribute' or 'varying'
Ian Romanick [Sat, 8 Jan 2011 00:53:59 +0000 (16:53 -0800)]
glsl: Emit errors or warnings when 'layout' is used with 'attribute' or 'varying'

The specs that add 'layout' require the use of 'in' or 'out'.
However, a number of implementations, including Mesa, shipped several
of these extensions allowing the use of 'varying' and 'attribute'.
For these extensions only a warning is emitted.

This differs from the behavior of Mesa 7.10.  Mesa 7.10 would only
accept 'attribute' with 'layout(location)'.  This behavior was clearly
wrong.  Rather than carrying the broken behavior forward, we're just
doing the correct thing.

This is related to (piglit) bugzilla #31804.

NOTE: This is a candidate for the 7.9 and 7.10 branches.

13 years agoglsl: Allow 'in' and 'out' when 'layout' is also available
Ian Romanick [Sat, 8 Jan 2011 00:53:07 +0000 (16:53 -0800)]
glsl: Allow 'in' and 'out' when 'layout' is also available

All of the extensions that add the 'layout' keyword also enable (and
required) the use of 'in' and 'out' with shader globals.

This is related to (piglit) bugzilla #31804.

NOTE: This is a candidate for the 7.9 and 7.10 branches.

13 years agoscons: Fix cross-compilation.
José Fonseca [Thu, 13 Jan 2011 20:52:01 +0000 (20:52 +0000)]
scons: Fix cross-compilation.

Hairy stuff. Don't know how to do it better though.

13 years agor600g: add missing RECIPSQRT_CLAMPED to r600_bc_get_num_operands
Christian König [Thu, 13 Jan 2011 20:29:47 +0000 (21:29 +0100)]
r600g: add missing RECIPSQRT_CLAMPED to r600_bc_get_num_operands