summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-03-18context support! not tested at all! woooooooooo!HEADcontext_supportKenneth Graunke5-4/+21
modified by bwidawsk for updated interface Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
2012-03-15glsl: Add GLSL 1.40 textureSize() implementations for sampler2DRect.Eric Anholt3-2/+19
By setting lod to 0 in the builtin function implementation, we avoid needing to update all the visitors to ignore LOD in this case, when the hardware drivers actually want to ask for LOD 0 for rectangular textures. Fixes piglit spec/GLSL-1.40/textureSize-*Rect. v2: Change style of looking for substrings. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Set up generated builtin functions handling for GLSL 1.40.Eric Anholt1-3/+3
Otherwise, when we go to use ir_reader on the generated code, we won't have the types present. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Add support for integer sampler2DRect variants in GLSL 1.40.Eric Anholt3-2/+27
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Drop ftransform() from GLSL 1.40 profile.Eric Anholt1-2/+0
This is the one builtin function claimed to be dropped due to the ARB_compatibility split. Fixes piglit spec/GLSL-1.40/compiler/ftransform.vert Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Copy GLSL 1.30 builtin profile to GLSL 1.40.Eric Anholt2-0/+1946
All that's changed is the #version changing to 140. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: When failing to compile some builtins, print the error.Eric Anholt1-0/+8
This makes the process slightly more debuggable, though it would be nice if the build just failed immediately instead. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Let the builtin compiler process GLSL 1.40 shaders.Eric Anholt1-3/+3
This is required to put the new 1.40 builtins in place, since they require new types. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Update builtin variables for GLSL 1.40.Eric Anholt1-109/+150
Mostly this is a matter of removing variables that have been moved to the compatibility profile. There's one addition: gl_InstanceID is present in the core now. This fixes the new piglit tests for GLSL 1.40 builtin variables. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Hook up the current GLSL 1.30 types and builtins for 1.40.Eric Anholt3-1/+10
This gets a basic #version 140 shader compiling. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-15glsl: Add support for parsing #version 140.Eric Anholt4-0/+8
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-14i965: Enable SIMD16 mode for shaders with loops on Gen6+.Kenneth Graunke1-1/+1
The hardware supports it; there's no reason not to. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-14gallivm: Fix createOProfileJITEventListener namespace with llvm-3.1.Vinson Lee1-0/+4
llvm-3.1svn r152620 refactored the OProfile profiling code. createOProfileJITEventListener was moved from the llvm namespace to the llvm::JITEventListener namespace. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-03-14noop: Use non-recursive automakeTom Stellard3-16/+18
2012-03-14identity: Use non-recursive automakeTom Stellard3-14/+18
2012-03-14galahad: Use non-recursive automakeTom Stellard3-15/+44
2012-03-14gallium/drivers: Use automake to generate makefileTom Stellard19-16/+50
2012-03-14docs: fix html in banner.htmlChristopher Yeleighton1-23/+23
https://bugs.freedesktop.org/show_bug.cgi?id=47304 Signed-off-by: Brian Paul <brianp@vmware.com>
2012-03-13glsl: Avoid extra if statements for logic and/or with no side effects.Eric Anholt1-17/+6
This avoids extra if statements in the common case of just comparing two expressions that don't involve assignments or function calls, along with simplifying the handling of constant expressions. Reduces i965 instructions generated in unigine tropics and sanctuary, yofrankie, warsow, gstreamer shaders, and the weston compositor. shader-db results: Total instructions: 213052 -> 212752 38/1246 programs affected (3.0%) 14309 -> 14009 instructions in affected programs (2.1% reduction)
2012-03-13mesa: add back glGetnUniform*v() overflow error reportingDylan Noblesmith2-5/+13
The error was removed in: commit 719909698c67c287a393d2380278e7b7495ae018 Author: Ian Romanick <ian.d.romanick@intel.com> Date: Tue Oct 18 16:01:49 2011 -0700 mesa: Rewrite the way uniforms are tracked and handled The GL_ARB_robustness spec doesn't say the implementation should truncate the output, so just return after setting the required error like it did before the above commit. Also fixup an old comment and add an assert. NOTE: This is a candidate for the 8.0 branch.
2012-03-12mesa: Fix the cause of piglit test fbo-array failureAnuj Phogat1-1/+3
Handle the special case of glFramebufferTextureLayer() for which we pass teximage = 0 internally in framebuffer_texture(). This patch makes failing piglit test fbo-array, fbo-depth-array to pass. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47126 V4: Removed the duplicated code. Note: This is a candidate for the stable branches. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-03-12mesa: fix _mesa_DebugMessageCallbackARB() to silence warningsBrian Paul1-2/+2
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-03-12radeon: remove use of DD_FLATSHADEBrian Paul1-1/+1
This got missed earlier <sigh>.
2012-03-12docs: fix up html tags in autoconf.htmlChristopher Yeleighton1-61/+37
http://bugs.freedesktop.org/show_bug.cgi?id=47241 Signed-off-by: Brian Paul <brianp@vmware.com>
2012-03-12mesa: add more comments about textarget in framebuffer_texture()Brian Paul1-2/+10
2012-03-12mesa: renumber remaining DD_ constantsBrian Paul1-10/+10
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12mesa: remove unused DD_TRI_CULL_FRONT_BACKBrian Paul3-12/+4
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12mesa: remove unused DD_FLATSHADEBrian Paul4-9/+1
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12mesa: remove unused DD_TRI_TWOSTENCILBrian Paul4-11/+1
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12mesa: remove _DD_NEW_x flagsBrian Paul1-21/+0
They're no longer used anywhere. Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12tnl: stop using _DD_NEW_x flagsBrian Paul1-1/+2
Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12swrast: s/_DD_NEW_SEPARATE_SPECULAR/_MESA_NEW_SEPARATE_SPECULAR/Brian Paul1-3/+3
Another step toward removing the _DD_NEW_x flags Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12mesa: define _MESA_NEW_SEPARATE_SPECULARBrian Paul2-2/+8
This will replace the soon-to-be-removed _DD_NEW_SEPARATE_SPECULAR flag. Note: there's a similar composite _MESA_NEW_NEED_EYE_COORDS flag set already. Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12i915: remove occurances of _DD_NEW_x flagsBrian Paul1-7/+5
Just use the corresponding _NEW_x flags intead. The _DD_NEW_x flags will be removed in a following patch. Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-03-12mesa: remove ctx->Driver.ClearColor() hookBrian Paul3-34/+0
The driver Clear() function should just grab the clear color out of the context. Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12mesa/gdi: remove clear_color() functionBrian Paul1-32/+15
Setup the clearing color in the clear() function. Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12xlib: remove clear_color() functionBrian Paul1-25/+11
Just setup the clearing color in clear_buffers(). Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12radeon/r200: remove ClearColor driver functionsBrian Paul5-41/+0
The state.color.clear value was never used anywhere. Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12mesa: remove ctx->Driver.ClearDepth(), ClearStencil() driver hooksBrian Paul5-28/+0
Not used by any drivers. Drivers can easily access the values from the Mesa context at glClear() time. Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12radeon/r200: remove ClearDepth() and ClearStencil() driver hooksBrian Paul5-86/+0
The computed stencil.clear and depth.clear values aren't used anywhere. Those fields have been removed too. Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-12radeon/r200: remove hyperz/fast clear testing codeBrian Paul2-20/+0
The flags which were computed were never actually used. Reviewed-by: Dave Airlie <airlied@redhat.com>
2012-03-11docs: Fix unclosed anchor tag in xlibdriver.html.Kenneth Graunke1-1/+1
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47205
2012-03-11egl/drm: Include errno.hJosé Fonseca1-0/+1
Fixes scons build.
2012-03-11Set close on exec flag FD_CLOEXECDavid Fries7-6/+66
Set the close on exec flag when opening dri character devices, so they will be closed and free any resouces allocated in exec. Signed-off-by: David Fries <David@Fries.net> Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11mapi/glapi: Fix glDebugMessageCallbackARB arg type to GLDEBUGPROCARBJosé Fonseca6-8/+10
Necessary to prevent type mismatches on MinGW. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11glapi/gen: Add support for pointer types.José Fonseca3-3/+5
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11mesa: Prevent collision of ERROR define on Windows.José Fonseca1-0/+3
This issue might recur on other OSes. If so then it might be better to remove the C-preprocessor magic, and use fully qualified defines instead. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-11include: Fix glDebugMessageCallbackARB's prototype.José Fonseca1-2/+2
Seems to be a bug in Khronos headers, as http://www.opengl.org/registry/specs/ARB/debug_output.txt states userParam is not a const pointer. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-10mesa: expose ARB_debug_outputMarek Olšák1-0/+1
2012-03-10mesa: display list dispatch for ARB_debug_outputMarek Olšák1-0/+3