summaryrefslogtreecommitdiff
path: root/src/mesa/SConscript
AgeCommit message (Collapse)AuthorFilesLines
2013-10-26mesa: add vdpau.c and st_vdpau.c to src/mesa/SConscriptBrian Paul1-0/+2
Fixes SCons build.
2013-09-26mesa: Add core support for the GL_AMD_performance_monitor extension.Kenneth Graunke1-0/+1
This provides an interface for applications (and OpenGL-based tools) to access GPU performance counters. Since the exact performance counters available vary between vendors and hardware generations, the extension provides an API the application can use to get the names, types, and minimum/maximum values of all available counters. Counters are also organized into groups. Applications create "performance monitor" objects, select the counters they want to track, and Begin/End monitoring, much like OpenGL's query API. Multiple monitors can be in flight simultaneously. v2: Pass ctx to all driver hooks (suggested by Christoph), and attempt to fix overallocation of bitsets (caught by Christoph). Incomplete. v3: Significantly rework core data structures. Store counters in groups rather than in a global list. Use their array index in the group's counter list as the ID rather than trying to store a globally unique counter ID. Use bitsets for active counters within a group, and also track which groups are active so that's easy to query. v4: Remove _mesa_ prefix on static functions; detect out of memory conditions in new_performance_monitor(); make BeginPerfMonitor hook return a boolean rather than setting m->Active or raising an error. Switch to GLuint/unsigned for NumGroups, NumCounters, and MaxActiveCounters (which also means switching a bunch of temporary variable types). All suggested by Brian Paul. Also, remove commented out code at the bottom of the block. Finally, fix the dispatch sanity test (noticed by Ian Romanick). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> [v3] Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-09-04mesa: Update builds scripts to build object labelsTimothy Arceri1-0/+1
Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-07-01scons: Fix dependencies of enums.c and api_exec.c.José Fonseca1-17/+0
2013-05-01scons: remove IN_DRI_DRIVERAndreas Boll1-1/+0
Not used anymore.
2013-04-25scons: Support clang.José Fonseca1-1/+2
clang is supports most gcc options / extensions, with a some exceptions. The biggest advantage of using clang is that compilation times are much short. One can tell scons to use clang when building by invoking it as CC=clang CXX=clang++ scons libgl-xlib
2013-04-17mesa: generate glGetInteger/Boolean/Float/Doublev() code for all APIsBrian Paul1-6/+1
No longer pass -a flag to the get_hash_generate.py script to specify OpenGL, ES1, ES2, etc. This updates the autoconf, scons and android build files too (so we can bisect). This is the last of the API-dependent conditional compilation in core Mesa. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-04-11scons: Add st_cb_msaa.c to source list.José Fonseca1-0/+1
2013-03-13scons: Define PACKAGE_VERSION/BUGREPORT globally.José Fonseca1-5/+0
Fixes the scons build.
2013-03-13scons: Define PACKAGE_xxxJosé Fonseca1-0/+5
Should get the builds going again.
2013-01-21scons: Fix dependencies of generated headers.José Fonseca1-21/+2
It appears that scons implicit dependency scanners fail to chain dependencies of generated headers when these are outside the build tree. This patch ensures generated source files are _always_ put in the build tree. I'm not 100% this will fix all depency issues, but from my experiments it does seem to fix this. NOTE: For this to be effective it is necessary to clean the source tree from generated header/source files. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-16mesa: add new formatquery.c file to SConscript file to fix buildBrian Paul1-0/+1
2013-01-07mesa: Don't use rtasm for Haiku swrastAlexander von Gluck IV1-1/+1
* We have a symbol conflict as rtasm in Mesa collides with rtasm in gallium. * As us linking gallium and mesa together is an edge case, lets just omit the rtasm code from Mesa as we should be going llvmpipe soon :)
2012-12-07program/hash_table.c: rename to program/prog_hash_table.cJordan Justen1-1/+1
Removes a collision of the object file name for main/hash_table and program/hash_table. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-12-06mesa: add set support (stores a set of pointers)Eric Anholt1-0/+1
From: git://people.freedesktop.org/~anholt/hash_table Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> [jordan.l.justen@intel.com: minor rework for mesa] Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-11-12mesa: Import a copy of the open-addressing hash table code I wrote.Eric Anholt1-0/+1
Mesa's chaining hash table for object names is slow, and this should be much faster. I namespaced the functions under _mesa_*, to avoid visibility troubles that we may have had before with hash_table_* functions. v2: Move .c file to main/, const a few things, clean up loop conditions, add/extend some comments. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
2012-11-06scons: Build src/mesa/main/es1_conversion.c for all builds.Vinson Lee1-1/+2
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
2012-11-06dispatch: Code generate api_exec.c.Paul Berry1-0/+8
This patch adjusts makefiles to cause src/mesa/main/api_exec.c to be generated using src/mapi/glapi/gen/gl_genexec.py. There should be no functional change. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2012-11-01dispatch: stop generating separate GLES1 API code.Paul Berry1-18/+0
This patch removes the generated files api_exec_es1.c, api_exec_es1_dispatch.h, and api_exec_es1_remap_helper.h (and the source files and build rules used to generate them), since they are no longer used. GLES1 now uses the same dispatch table layout as all the other APIs. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-16mesa: Remove support for parsing NV fragment programs.Kenneth Graunke1-1/+0
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-16mesa: Remove the NV program API functions.Kenneth Graunke1-1/+0
These are all unused now. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-15mesa: Remove support for parsing NV vertex programs.Eric Anholt1-1/+0
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-10mesa: glGet: add script to generate hash tables in build timeImre Deak1-1/+17
This will be needed by the next patch, which will switch to using the parameter descriptor- and hash tables generated by the script. The hash algorithm remains the same, the output parameter descriptor table format changes slightly. There the TYPE_API_MASK entries are removed and an invalid NULL entry is inserted at the beginning. This is ok, as get.c:find_value() doesn't rely on TYPE_API_MASK any more to detect an invalid enum. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
2012-10-10scons/android: add flag to check for enabled GL APIsImre Deak1-4/+5
Needed by the next patch. Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Oliver McFadden <oliver.mcfadden@linux.intel.com>
2012-09-28scons: Disable build of assembly sources on Cygwin.Vinson Lee1-1/+1
The assembly sources currently do not build on Cygwin. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-09-15scons: add new -p (prefix) options for yaccBrian Paul1-1/+1
These were recently added to the Makefiles.
2012-08-30scons : add HAVE_DLOPEN to build environmentTapani Pälli1-0/+1
fixes dlopen issue caused by 57c57df7b4579b60a84062df2e64f84dd84558b5 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54140 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-08-29mesa: Kill ES2 wrapper functionsIan Romanick1-18/+0
v2: Fix completely broken condition around ClearColorIiEXT and ClearColorIuiEXT. v3: Add special VertexAttrib handling for ES2. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2012-08-24Move _mesa_dl* functions into dlopen.h and inline themMatt Turner1-1/+0
No point in having an extra function call for inlinable functions. Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2012-08-24mesa: rename texpal.[ch] to texcompress_cpal.[ch]Brian Paul1-1/+1
To be consistent with other files related to texture compression.
2012-08-17mesa/es: Don't generate ES1 type conversion wrappersIan Romanick1-1/+1
These are gradually going to get whittled away and eventually folded into the source files with the native type functions. v2: Add (speculative) SConscript changes. These may be broken. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-07-21mesa: add glformats integer type/format detection routinesJordan Justen1-0/+1
_mesa_is_integer_format is moved to formats.c and renamed as _mesa_is_enum_format_integer. _mesa_is_format_unsigned, _mesa_is_type_integer, _mesa_is_type_unsigned, and _mesa_is_enum_format_or_type_integer are added. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-07-13Rename sparc/clip.S -> sparc/sparc_clip.SJon TURNEY1-1/+1
Automake can't handle having both clip.S and clip.c, even though they have different paths "src/mesa/Makefile.am: object `clip.lo' created by `$(SRCDIR)/sparc/clip.S' and `$(SRCDIR)/main/clip.c'" Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Tested-by: Matt Turner <mattst88@gmail.com>
2012-06-15scons: add st_atom_array.c to the buildBrian Paul1-0/+1
2012-05-31scons: add code to generate the various GL API filesBrian Paul1-2/+13
This fixes recent build breakage when we began building the generated API files from xml as part of the normal build process. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=50475
2012-05-17vbo: add software primitive restart supportJordan Justen1-0/+1
vbo_sw_primitive_restart implements primitive restart in software by splitting primitive draws apart. This is based on similar support in mesa/state_tracker/st_draw.c. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-03-10mesa: split error handling into its own filenobled1-0/+1
Also add _mesa_vsnprintf.
2012-02-25scons: Don't build the assembly sources on Mac OS X.Vinson Lee1-1/+1
This patch allows the Mac OS X SCons build to complete. The assembly sources contain psuedo-ops that not are supported on Mac OS X. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-01-21Remove src/mesa/ppcMatt Turner1-8/+0
It didn't actually do anything except modify the GL_RENDERER string.
2012-01-06swrast: remove s_depthstencil.[ch] filesBrian Paul1-1/+0
The code is no longer used. Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-13mesa: remove unused depthstencil.[ch] filesBrian Paul1-1/+0
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-13mesa: build swrast/s_depthstencil.cBrian Paul1-0/+1
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-08mesa: build new s_renderbuffer.c fileBrian Paul1-0/+1
Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-08mesa: rewrite accum buffer supportBrian Paul1-2/+0
Implemented in terms of renderbuffer mapping/unmapping and format packing/unpacking functions. The swrast and state tracker code for implementing accumulation are unused and will be removed in the next commit. v2: don't use memcpy() in _mesa_clear_accum_buffer() v3: don't allocate MAX_WIDTH arrays, be more careful with mapping flags Reviewed-by: Eric Anholt <eric@anholt.net>
2011-12-08mesa: new format_pack.c codeBrian Paul1-0/+1
This code packs colors, Z, stencil, etc. in the various mesa pixel formats. Will be used for things like glDrawPixels, glTexImage, glAccum, etc.
2011-12-02mesa: add ETC1 decoding routinesChia-I Wu1-0/+1
The format is defined by GL_OES_compressed_ETC1_RGB8_texture. These routines will be used in the following commit. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-11-15mesa: remove _swrast_ReadPixels()Brian Paul1-1/+0
We use the code in main/readpix.c now. Acked-by: Eric Anholt <eric@anholt.net>
2011-11-11mesa: replace api_noop.[ch] with vbo_noop.[ch]Brian Paul1-1/+1
None of the code in api_noop.c was used anymore. The new vbo_noop.c functions are true no-ops. They'll be used to no-op glBegin/End functions when we run out of VBO memory.
2011-11-09scons: Don't list m_xform.c twice.José Fonseca1-5/+0
2011-11-07mesa: remove prog_uniform.c from SConscriptBrian Paul1-1/+0