summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Add egl-apis target.Chia-I Wu2010-05-0812-161/+178
| | | | | | | | | | | | | | | The new target installs client API modules to EGL_DRIVER_INSTALL_DIR. They are used by st/egl. The client APIs are built from OpenGL and OpenVG state trackers. For this to work, st/vega is modified to produce a static library, libvega.a, instead. st/es is also not needed any more. It is removed and --with-state-trackers=es is replaced by --enable-gles-overlay. As st/egl now has its own client API modules, this solves the ABI issue between st/egl and client APIs, as long as the client API modules are distributed with st/egl. Plus, this allows st/egl to support OpenGL with non-Gallium libGL.so.
* mapi: Add install rules for OpenGL ES.Chia-I Wu2010-05-084-48/+43
| | | | Move the install rules for OpenGL ES from src/mesa/Makefile to mapi.
* mapi: Install .pc file for OpenVG.Chia-I Wu2010-05-082-1/+31
|
* mapi: Update vgapi to build libOpenVG.so.Chia-I Wu2010-05-081-3/+24
| | | | Unlike the one produced by st/vega, this is a dispatch-only library.
* mapi: Merge src/gles/.Chia-I Wu2010-05-083-90/+38
| | | | | Remove src/gles and have mapi/{es1api,es2api} build libGLESv1_CM.so and libGLESv2.so.
* Define OpenGL ES and OpenVG library names.Chia-I Wu2010-05-084-2/+36
| | | | | | Define <API>_LIB, <API>_LIB_NAME, <API>_LIB_GLOB, and some other variables in the configs. Fix a typo in glesv1_cm.pc.in where an inexistent variable is used.
* egl_g3d: Check external modules for client APIs first.Chia-I Wu2010-05-083-39/+157
| | | | | dlopen api_<API>.so before dlopening the process itself in case the client APIs are implemented in external modules.
* egl: Add _eglSearchPathForEach.Chia-I Wu2010-05-082-0/+20
| | | | The function can be used by a driver to check each search path of EGL.
* gallium/draw: additional comments in the clipping codeBrian Paul2010-05-071-5/+10
|
* mesa: remove driver hooks for GetFloat/Integer/Doublev, etcBrian Paul2010-05-075-54/+0
| | | | | Once upon a time some drivers hooked into these for GL_HP_occlusion_test and GL_OES_read_format. They're not being used anymore so get rid of them.
* glx: Get GLX_SCREEN first in __glXQueryContextInfo()Kristian Høgsberg2010-05-071-3/+10
| | | | | | | | And lookup the GLX screen for the context. Otherwise we'll end up jumping through a NULL-pointer once we try to look up the visual or config for the shared context. https://bugs.freedesktop.org/show_bug.cgi?id=14245
* mesa: fpclassify dummy definition is not needed on cygwinJon TURNEY2010-05-071-1/+1
| | | | | | | fpclassify is provided by math.h Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* tgis: fix SOA aliasing for MUL instruction in SSE codegenBrian Paul2010-05-071-4/+11
| | | | Part of a fix for piglit trinity-fp1 test failure.
* apple: Move glapi to mapi.Vinson Lee2010-05-061-1/+2
| | | | | This was missed in commit 296adbd545b8efd38c9ed508166b2de2764a444b. Fixes darwin build.
* mapi/glapi: Don't allocate a page for every function on windows.José Fonseca2010-05-072-36/+42
|
* mapi: Avoid Data Execution Prevention on windows.José Fonseca2010-05-072-1/+17
|
* wgl: Add mapi to includes.José Fonseca2010-05-071-0/+1
|
* mapi: Add x86-64 dispatcher.Chia-I Wu2010-05-072-0/+99
|
* mapi: Add x86 dispatcher.Chia-I Wu2010-05-074-1/+246
|
* st/vega: Use vgapi.Chia-I Wu2010-05-0717-235/+396
| | | | | | Rename vgFooBar to vegaFooBar and use vgapi as the dispatcher. This makes sure there is always a current context when the internal functions are called. And eglGetProcAddress is finally supported.
* mapi: Add vgapi.Chia-I Wu2010-05-073-0/+154
| | | | vgapi is a dispatcher for OpenVG.
* mapi: Add a generic C dispatcher.Chia-I Wu2010-05-0712-0/+1325
| | | | | The idea is to have an API generate a header using mapi_abi.py. The API can then use the header to build a dispatcher.
* mapi: Add mapi and share the code with glapi.Chia-I Wu2010-05-0719-743/+794
| | | | | | | | | | Specifically, move all or most of glapi/glapi.c to mapi/u_current.c, glapi/glapi_execmem.c to mapi/u_execmem.c, glapi/glthread.[ch] to mapi/u_thread.[ch] and remove their dependencies on core Mesa headers.
* glapi: Move to src/mapi/.Chia-I Wu2010-05-07120-163/+282
| | | | Move glapi to src/mapi/{glapi,es1api,es2api}.
* glapi: Move assembly dispatchers back into glapi/.Chia-I Wu2010-05-078-20/+20
|
* gallivm: Require SSE2 for draw_llvm/llvmpipe due to LLVM PR6960.Török Edwin2010-05-062-2/+18
| | | | | | | | Note that this also requires X86 for llvm, if llvmpipe/draw_llvm works on PPC then the condition should be extended to include && x86. Signed-off-by: Török Edwin <[email protected]> Signed-off-by: José Fonseca <[email protected]>
* softpipe: fix dangling references to shaders in the TGSI executorBrian Paul2010-05-064-20/+22
| | | | | | | | | | | | | | | If a shader was bound to the fragment shader TGSI executor and it was then deleted and a new shader was allocated at the same address as the old shader, the new fragment shader would not get properly bound to the TGSI machine and we'd wind up using the old one. This would not have been a problem if shaders were refcounted. Now the TGSI machine is owned by the context rather than the quad pipeline's shader stage so that the softpipe_delete_fs_state() function can access it. Fixes sporadic failures of the piglit fp-long-alu test (fd.o bug 27989).
* tgsi: make SSE ADD instruction SOA-safeBrian Paul2010-05-061-5/+13
| | | | | | | | | | | To properly execute an instruction such as "ADD tmp, tmp.wzyx, foo;" with SOA we (sometimes) need to put the results into temporaries before writing the results to the destination register. This patch fixes the ADD instruction but this needs to be done for many more instructions. Helps to fix piglit fp-long-alu test (fd.o bug 27989).
* tgsi: code refactoringBrian Paul2010-05-061-16/+34
|
* tgsi: added tgsi_get_processor_name()Brian Paul2010-05-062-0/+18
|
* tgsi: fix tgsi_exec_machine_bind_shader() to handle NULL tokens, samplersBrian Paul2010-05-061-1/+20
| | | | | | This lets us unbind a shader from the tgsi_exec_machine. Since shaders aren't ref counted we need this to properly clean up when deleting shaders elsewhere.
* gallium/tgsi: remove unused tgsi_exec_labels codeBrian Paul2010-05-062-22/+0
|
* llvmpipe: Fix fence wait.José Fonseca2010-05-061-1/+4
| | | | | Avoids crashing when fence is NULL (LP_NUM_THREADS=0) and leaking when it is not.
* st/mesa: fix compressed mipmap generation for small image sizesBrian Paul2010-05-061-2/+24
| | | | | | | When the mipmap level is smaller than the compression block width, height we need to fill in / replicate pixels so that we don't get garbage values. Fixes piglit gen-compressed-teximage test.
* st/mesa: fix bug in compute_num_levels()Brian Paul2010-05-061-5/+7
| | | | | Fix more fall-out from the "ignore BaseLevel" change. This may help with fd.o bug 27991.
* st/mesa: when copying mipmap levels between textures, start at BaseLevelBrian Paul2010-05-061-1/+1
| | | | | | Saves some work and avoids potential issue with inconsistant mipmap level sizes. As long as the mipmap levels from BaseLevel to MaxLevel are consistant, we don't care about the other levels.
* scons: Disable graw-null on msvc until linkage works.José Fonseca2010-05-061-1/+3
|
* graw-null: Try to fix MSVC linkage problems.José Fonseca2010-05-061-1/+4
|
* es: IgnoresJakob Bornecrantz2010-05-061-0/+4
|
* svga: Fix scons buildJakob Bornecrantz2010-05-061-0/+2
|
* llvmpipe: implement occlusion queryQicheng Christopher Li2010-05-0614-50/+277
| | | | | | | OpenGL occlusion queries work now. The Mesa demos, glean test and piglit tests all pass. A few enhancements are possible in the future. -Brian Signed-off-by: Brian Paul <[email protected]>
* util: Recognize FALSE and F in debug_get_bool_optionJakob Bornecrantz2010-05-061-0/+4
| | | | | Concidering that we actually print FALSE when displaying the option we should also accept that value.
* gallium: untrack u_indices_gen.c and u_indices_gen.cJosé Fonseca2010-05-064-6123/+2
| | | | | | | | | | | | These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <[email protected]> Signed-off-by: José Fonseca <[email protected]>
* raw/clear: Make it portable.José Fonseca2010-05-061-2/+3
|
* graw-null: New target to ensure we always have a graw implementation available.José Fonseca2010-05-064-3/+145
|
* graw-xlib: Remove duplicate graw.h file.José Fonseca2010-05-062-37/+1
|
* Revert "gallium: untrack u_indices_gen.c and u_indices_gen.c"José Fonseca2010-05-061-2/+0
| | | | | | This incomplete patch got commited by mistake. This reverts commit 2142c769a4ebfe1a7c3facb036af8b75c5288616.
* gallium: untrack u_indices_gen.c and u_indices_gen.cXavier Chantry2010-05-061-0/+2
| | | | | | | | | | | | These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <[email protected]> Signed-off-by: José Fonseca <[email protected]>
* gallium: untrack u_indices_gen.c and u_indices_gen.cXavier Chantry2010-05-061-0/+2
| | | | | | | | | | | | These files are built with make and removed with make clean, so it does not seem necessary to track them. Looking at the Makefile, it seems that the two u_indices_* files are handled similarly to u_format_srgb.c u_format_table.c and u_half.c, and these 3 files are already untracked and in .gitignore Signed-off-by: Xavier Chantry <[email protected]> Signed-off-by: José Fonseca <[email protected]>
* darwin: Fix buildJeremy Huddleston2010-05-051-4/+4
| | | | | | | | | This is a regression from e42d84eaba228d4d96a46d116c6ca24581e29439 https://bugs.freedesktop.org/show_bug.cgi?id=27929 Signed-off-by: Jeremy Huddleston <[email protected]> (cherry picked from commit 4d63be67f320839d115987211d0d9b4297f6d17d)