summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* mesa/es: Generate code for special functions.Chia-I Wu2010-01-046-20/+37
| | | | | | | | | | | | es_generator.py did not generate code for special functions. They were supposed to be defined elsewhere. But as a result, parameter checking was also skipped. This commit changes the way special functions are called so that parameter checking is always performed. When there is nothing to check, the check functions becomes macros expanding to the real functions, as an optimization. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Remove unused code in es_generator.py.Chia-I Wu2010-01-041-44/+0
| | | | | | Remove unused GetLoopSizeExpression. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Generate _mesa_GetFixedv.Chia-I Wu2010-01-043-266/+31
| | | | | | | Have get_gen.py generate _mesa_GetFixedv. The generated function does all the checkings and thus simplifies APIspec.xml a bit. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Add a sanity check to APIspec.py.Chia-I Wu2010-01-041-1/+17
| | | | | | | Some attributes are constant in a switch. Raise an exception if they are not. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Switch to APIspec.xml.Chia-I Wu2010-01-046-4117/+8
| | | | | | | Update Makefile and ES generator to use APIspec.xml. Remove APIspec.txt and related files. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Add APIspec.xml and its parser.Chia-I Wu2010-01-044-0/+5320
| | | | | | | APIspec.xml is based on APIspec.txt. The new format has less code duplications and should be easier to read. Signed-off-by: Chia-I Wu <[email protected]>
* st/egl: Allow APIs other than OpenGL.Chia-I Wu2009-11-105-20/+41
| | | | | | | | This is done by stopping linking to libmesagallium.a and removing DRI related stuff. The state tracker an application links to decides the API supported. Signed-off-by: Chia-I Wu <[email protected]>
* egl_softpipe: Clean up Makefile.Chia-I Wu2009-11-101-10/+5
| | | | | | Fix generation of depend. Link to the dynamic libraries used. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Add .gitignore.Chia-I Wu2009-11-101-0/+5
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* gallium: Allow state trackers to install files.Chia-I Wu2009-11-061-1/+5
| | | | | | State trackers like es or vega need to install their libraries. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/main: linear_to_nonlinear is not always available.Chia-I Wu2009-11-061-24/+38
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Improve support for parallel execution of make.Chia-I Wu2009-11-062-5/+15
| | | | | | | Running make with -j for the first time might fail because glapi headers haven't been generated. This commit should make it more reliable. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Fix symbol conflicts and warnings.Chia-I Wu2009-11-063-2/+4
| | | | | | | | | | drawtex.c was listed in LOCAL_ES1_SOURCES twice. My mistake when merging the patches. Also, run gl_apitemp.py with -c to silence warnings and add target "install". Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Add OpenGL ES compatibility mode to scripts.Chia-I Wu2009-11-064-19/+108
| | | | | | | | | | When the mode is on, the scripts would generate headers that are suitable for OpenGL ES. There are two differences. One is that they will generate function prototypes for OpenGL ES specific functions. The other is that, when a function has multiple names, SET/GET/CALL macros would be generated for each of names. Signed-off-by: Chia-I Wu <[email protected]>
* st/es: Add OpenGL ES state trackers.Chia-I Wu2009-11-053-0/+90
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Add support for GL_OES_draw_texture.Chia-I Wu2009-11-0514-3/+654
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Add OpenGL ES overlay.Chia-I Wu2009-11-0516-0/+7069
| | | | | | | | | | | This is primitive support for OpenGL ES. It uses a subset of mesa sources to build libesXgallium.a and libesXapi.a, where X is 1 for OpenGL ES 1.x, 2 for OpenGL ES 2.x. The static libraries serve the same purpose as libmesagallium.a and libglapi.a do for OpenGL. This is based on the work of opengl-es branch. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/es: Add OpenGL ES XMLs.Chia-I Wu2009-11-0513-0/+7612
| | | | | | These XMLs define OpenGL ES 1.x and 2.x APIs. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/main: Make _mesa_TexGenf and _mesa_GetTexGenfv global again.Chia-I Wu2009-11-052-2/+8
| | | | | | They are needed by OpenGL ES overlay. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Include headers with directory prefixes.Chia-I Wu2009-11-0511-25/+25
| | | | | | This allows different sets of generated sources and headers to be used. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Avoid hardcoded category names in remap helper script.Chia-I Wu2009-11-051-8/+16
| | | | | | The output of the script is unchanged. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Add is_abi() to test if a function is in the ABI.Chia-I Wu2009-11-054-9/+6
| | | | | | | The test is done by checking if the offset is manually assigned. The generated headers are unchanged. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/main: Add more OpenGL ES types to glheader.h.Chia-I Wu2009-11-052-6/+7
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* mesa/main: Add support for point size array in _mesa_GetPointerv.Chia-I Wu2009-11-051-0/+5
| | | | Signed-off-by: Chia-I Wu <[email protected]>
* gallium/xlib: Fix missing symbols when GLX_INDIRECT_RENDERING is defined.Chia-I Wu2009-11-051-0/+30
| | | | | | | | When GLX_INDIRECT_RENDERING is defined, some symbols are used in libglapi.a but are not defined. Define them through the help of glapitemp.h. Signed-off-by: Chia-I Wu <[email protected]>
* mesa/xlib: Fix missing symbols when GLX_INDIRECT_RENDERING is defined.Chia-I Wu2009-11-051-0/+30
| | | | | | | | When GLX_INDIRECT_RENDERING is defined, some symbols are used in libglapi.a but are not defined. Define them through the help of glapitemp.h. Signed-off-by: Chia-I Wu <[email protected]>
* glapi: Allow normal entry points to be skipped.Chia-I Wu2009-11-053-215/+274
| | | | | | | | | | | Reorganize glapitemp.h such that it is possible to skip normal entry points or protocol entry points by defining _GLAPI_SKIP_NORMAL_ENTRY_POINTS or _GLAPI_SKIP_PROTO_ENTRY_POINTS. Protocol entry points are those with different GLX protocols. They are skipped in libglapi.a when GLX_INDIRECT_RENDERING is defined. Signed-off-by: Chia-I Wu <[email protected]>
* mesa: fix infinite loop bug in _mesa_drawbuffers()Brian Paul2009-11-051-1/+2
| | | | | Fixes bug 24946. This regression came from 8df699b3bb1aa05b633f05b121d09d812c86a22d.
* softpipe: Implement PIPE_BLENDFACTOR_SRC_ALPHA_SATURATE for destination.José Fonseca2009-11-051-2/+10
| | | | It is a valid and tested combination on D3D9.
* g3dvl: remove a debug lineCooper Yuan2009-11-051-1/+0
|
* g3dvl: add scissor settingCooper Yuan2009-11-054-0/+13
|
* r300g: add polygon modeMarek Olšák2009-11-045-3/+67
| | | | Signed-off-by: Corbin Simpson <[email protected]>
* r300g: fix the size of CS when emitting the fragprog constant bufferMarek Olšák2009-11-041-1/+1
| | | | Signed-off-by: Corbin Simpson <[email protected]>
* r300g: set the correct offset in a colorbuffer surfaceMarek Olšák2009-11-041-8/+9
| | | | | | | | | Suggested by Joakim Sindholt. Also, put flushing of colorbuffers _before_ the framebuffer state setup, suggested by docs. Signed-off-by: Corbin Simpson <[email protected]>
* r300g: add color channel maskingMarek Olšák2009-11-044-5/+19
| | | | Signed-off-by: Corbin Simpson <[email protected]>
* Merge branch 'mesa_7_6_branch'Brian Paul2009-11-049-191/+191
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/windows/gdi/mesa.def
| * vbo: fix out-of-bounds array accessBrian Paul2009-11-043-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | The exec->vtx.inputs[] array was being written past its end. This was clobbering the following vbo_exec_context::eval state. Probably not noticed since evaluators and immediate mode rendering don't happen at the same time. Fixed the loop in vbo_exec_vtx_init(). Changed the size of the vbo_exec_context::vtx.arrays[] array. Added a bunch of debug-build assertions. Issue found by Vinson Lee.
| * mesa: fix broken pack_histogram() case for GLhalfBrian Paul2009-11-041-3/+4
| |
| * mesa: silence warning from gcc 4.4.1Brian Paul2009-11-041-2/+2
| |
| * Fix YTILE spantmp functionsAlan Hourihane2009-11-041-2/+2
| |
| * glslcompiler: Fix Mac OS build.Vinson Lee2009-11-041-1/+1
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>
| * mesa: (GLint64) casts in get.c to silence Visual Studio warningsBrian Paul2009-11-032-173/+173
| | | | | | | | Revised version of a patch from Karl Schultz.
| * windows: remove old entrypoints from mesa.def fileKarl Schultz2009-11-031-12/+0
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>
| * mesa: added GLAPIENTRY keywords for sync object functionsKarl Schultz2009-11-032-12/+12
| | | | | | | | Signed-off-by: Brian Paul <[email protected]>
* | ARB prog parser: include variable name in error textBrian Paul2009-11-043-468/+749
| |
* | st/xorg: these flushes shouldn't be necessaryZack Rusin2009-11-041-6/+0
| | | | | | | | performance optimization
* | r600: rework draw functionsAlex Deucher2009-11-041-64/+134
| | | | | | | | | | | | | | | | | | | | Seems INDX_OFFSET doesn't work properly on some cards, so change back to immediate mode indices. Seems to only affect DRI1. Needs more investigation. Rework and clean up the draw functions. Signed-off-by: Alex Deucher <[email protected]>
* | r600: fix count prediction for IB caseAlex Deucher2009-11-041-1/+1
| | | | | | | | Signed-off-by: Alex Deucher <[email protected]>
* | Fix YTILE spantmp functionsAlan Hourihane2009-11-041-2/+2
| |
* | util: Remove homegrown Windows KM profiler.José Fonseca2009-11-043-332/+0
| | | | | | | | | | It's not sampling based so its results are biased towards functions called many times.