Chad Versace
1eb0f17fa4
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
2011-01-17 09:41:25 -08:00
Chad Versace
8faaa4a672
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
2011-01-17 09:41:25 -08:00
Chad Versace
605aacc67d
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.
2011-01-17 09:41:24 -08:00
Chad Versace
0e2f8936c8
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".
2011-01-17 09:41:24 -08:00
Brian Paul
5a64626ee5
vbo: init num_instances in split_prims()
...
Fixes a VTK regression after adding GL_ARB_draw_instanced.
2011-01-17 09:56:58 -07:00
Brian Paul
6179f7e38e
tnl: assert that num_instances > 0
2011-01-17 09:40:16 -07:00
Brian Paul
72f2551017
mesa: s/primcount/numInstances/
...
primcount is also a parameter to glMultiDrawElements(). Use numInstances
to avoid confusion between these things.
2011-01-17 09:33:49 -07:00
Dave Airlie
2bf52e7c28
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>
2011-01-17 15:42:34 +10:00
Christian König
ef3b8042e0
r600g: fix PIPE_CAP_INSTANCED_DRAWING warning
2011-01-16 23:52:53 +01:00
Christian König
b61afe13f1
r600g: fix alu inst group merging for relative adressing
2011-01-16 21:43:17 +01:00
Christoph Bumiller
a4742c6a07
nvc0: fix and enable instanced drawing and arrays
2011-01-16 14:10:46 +01:00
Chia-I Wu
326332a130
d3d1x: Fix broken build.
...
st/egl native.h changed its interface in
a22a332fc7 .
2011-01-16 20:58:17 +08:00
Brian Paul
d136d1d2e1
mesa: minor tweaks in _mesa_set_fetch_functions()
2011-01-15 20:41:26 -07:00
Brian Paul
aad7219f80
mesa: add comment for _mesa_get_srgb_format_linear()
2011-01-15 20:41:06 -07:00
Brian Paul
bfad484505
mesa: move declarations before code
2011-01-15 20:37:57 -07:00
Dave Airlie
527bf67682
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>
2011-01-16 12:54:07 +10:00
Dave Airlie
9b1a15e1cb
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>
2011-01-16 12:54:06 +10:00
Dave Airlie
edc2dd8e47
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>
2011-01-16 12:54:06 +10:00
Christian König
ac6334145e
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.
2011-01-16 03:30:25 +01:00
Brian Paul
b3ca110594
mesa: implement glGet queries for GL_ARB_draw_buffers_blend
2011-01-15 18:35:45 -07:00
Brian Paul
44c2122a73
mesa: display list support for GL_ARB_draw_buffers_blend functions
2011-01-15 18:35:45 -07:00
Brian Paul
7f48278edc
mesa: plug in GL_ARB_draw_buffers_blend functions
2011-01-15 18:35:45 -07:00
Brian Paul
561307844f
glapi: regenerated files
2011-01-15 18:35:45 -07:00
Brian Paul
1cf6ff3046
glapi: new entrypoint specs for GL_ARB_draw_buffers_blend
2011-01-15 18:35:45 -07:00
Brian Paul
74713e2d29
mesa: begin implementation of GL_ARB_draw_buffers_blend
2011-01-15 18:35:39 -07:00
Brian Paul
a6860f0913
st/mesa: GL_ARB_instanced_arrays support
2011-01-15 17:37:41 -07:00
Brian Paul
1d1eb95787
mesa: support for GL_ARB_instanced_arrays
2011-01-15 17:37:41 -07:00
Brian Paul
1250e2330b
glapi: regenerated files
2011-01-15 17:37:41 -07:00
Brian Paul
caee0d024f
glapi: GL_ARB_instanced_arrays support
2011-01-15 17:37:40 -07:00
Brian Paul
5700bc6bac
draw: add missing LP_CHECK_MEMBER_OFFSET()
2011-01-15 17:37:40 -07:00
Brian Paul
d1e284407c
st/mesa: move/consolidate an assignment
2011-01-15 17:37:40 -07:00
Henri Verbeet
a25473b535
r600g: Remove the redundant radeon_new() prototype.
2011-01-15 19:48:43 +01:00
Henri Verbeet
5a2abf7a85
r600g: Fix some register value name typos.
...
SFR -> SRF.
2011-01-15 19:48:43 +01:00
Henri Verbeet
f6f7808028
r600g: Get rid of r600_translate_vertex_data_type().
...
This has been replaced with r600_vertex_data_type().
2011-01-15 19:48:43 +01:00
Brian Paul
652901e95b
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
2011-01-15 10:24:08 -07:00
Christoph Bumiller
21001d2ba7
nvc0: try to swap immediates to first source too
2011-01-15 14:14:55 +01:00
Christoph Bumiller
52474d4246
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.
2011-01-15 14:14:50 +01:00
Christoph Bumiller
1ae982adfd
nvc0: update user vbufs on each draw call
...
This is required in case set_vertex_buffers is not called again.
2011-01-15 12:18:52 +01:00
Christoph Bumiller
b50d02e2e0
nvc0: enable early fragment tests where possible
2011-01-15 12:17:57 +01:00
Christoph Bumiller
5ec66c6e70
nvc0: upload small buffers through the command buffer
2011-01-15 12:17:00 +01:00
Chia-I Wu
a4a5a9a5ce
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.
2011-01-15 12:42:59 +08:00
Chia-I Wu
b70d0a6a51
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.
2011-01-15 12:35:22 +08:00
Chia-I Wu
6f769a690b
targets/egl: i965 needs libwsw.
...
Fix undefined symbol wrapper_sw_winsys_dewrap_pipe_screen.
2011-01-15 12:35:19 +08:00
Eric Anholt
4620de7eea
mesa: Add getter for GL_SHADER_COMPILER with ARB_ES2_compatibility.
...
Fixes piglit arb_es2_compatibility-shadercompiler
2011-01-14 16:55:35 -08:00
Eric Anholt
8395f206a8
mesa: Add getters for ARB_ES2_compatibility MAX_*_VECTORS.
...
Fixes piglit arb_es2_compatibility-maxvectors.
2011-01-14 16:55:35 -08:00
Eric Anholt
e12c4faf7e
mesa: Add support for glDepthRangef and glClearDepthf.
...
These are ARB_ES2_compatibility float variants of the core double
entrypoints. Fixes arb_es2_compatibility-depthrangef.
2011-01-14 16:55:35 -08:00
Eric Anholt
25beab10cd
ir_to_mesa: Fix segfaults on ir_to_mesa invocation after MSVC change.
2011-01-14 16:55:35 -08:00
Brian Paul
d42acef139
glsl: fix implicit int to bool warning
...
Maybe preprocess() should return a bool.
2011-01-14 17:46:47 -07:00
Vinson Lee
7772a34f3a
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
2011-01-14 16:18:52 -08:00
Eric Anholt
7b987578a9
mesa: Add actual support for glReleaseShaderCompiler from ES2.
...
Fixes no-op dispatch warning in piglit
arb_es2_compatibility-releaseshadercompiler.c.
2011-01-14 15:30:04 -08:00