summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
Commit message (Collapse)AuthorAgeFilesLines
* graw: Tidy graw xlib scons file a bitJakob Bornecrantz2010-11-021-7/+1
|
* scons: Revamp how to specify targets to build.José Fonseca2010-11-0116-379/+200
| | | | | | | | | | | | | | | | | | | | | | Use scons target and dependency system instead of ad-hoc options. Now is simply a matter of naming what to build. For example: scons libgl-xlib scons libgl-gdi scons graw-progs scons llvmpipe and so on. And there is also the possibility of scepcified subdirs, e.g. scons src/gallium/drivers If nothing is specified then everything will be build. There might be some rough corners over the next days. Please bare with me.
* targets/egl: Fix a warning with --disable-opengl build.Chia-I Wu2010-10-311-2/+1
| | | | | API_DEFINES is the defines for libmesagallium.a. Append it to egl_CPPFLAGS only when st_GL.so, which uses libmesagallium.a, is built.
* targets: Add missing quotes to Makefile.xorg.Chia-I Wu2010-10-291-1/+1
| | | | | | Fix $ make CC="ccache gcc"
* glapi: Do not use glapidispatch.h.Chia-I Wu2010-10-271-3/+2
| | | | | | | | | glapidispatch.h exists so that core mesa (libmesa.a) can be built for DRI drivers or for non-DRI drivers as a compile time decision (whether IN_DRI_DRIVER is defined). It is of no use to glapi. This commit also drops the use of glapidispatch.h in glx and libgl-xlib as they are considered extensions to glapi when it comes to defining public GL entries.
* Ensure -L$(TOP)/$(LIB_DIR) appears in link line before any -L in $LDFLAGSJon TURNEY2010-10-241-6/+8
| | | | | | | | | | Ensure -L$(TOP)/$(LIB_DIR) (the staging dir for build products), appears in the link line before any -L in $LDFLAGS, so that we link driver we are building with libEGL we have just built, and not an installed version [olv: make a similar change to targets/egl] Signed-off-by: Jon TURNEY <[email protected]>
* mesa: fix mesa version string constructionBrian Paul2010-10-191-1/+1
| | | | | Now that MESA_MINOR=10, we no longer need the extra '0' in the version string.
* xorg/vmwgfx: Don't use deprecated x*alloc / xfree functionsThomas Hellstrom2010-10-193-10/+10
| | | | Signed-off-by: Thomas Hellstrom <[email protected]>
* st/xorg, xorg/vmwgfx: Be a bit more frendly towards cross-compiling environmentsThomas Hellstrom2010-10-191-2/+2
| | | | Signed-off-by: Thomas Hellstrom <[email protected]>
* egl/i965: include inline_wrapper_sw_helper.hVictor Tseng2010-10-181-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* target-helpers: Remove per target software wrapper checkJakob Bornecrantz2010-10-154-8/+4
| | | | | Instead of having a NAME_SOFTWARE check just use the GALLIUM_DRIVER instead but set the default to native which is the same as not wrapped.
* egl: Remove unnecessary headersJakob Bornecrantz2010-10-152-2/+0
|
* xorg/vmwgfx: Don't hide HW cursors when updating themThomas Hellstrom2010-10-121-0/+1
| | | | | | Gets rid of annoying cursor flicker Signed-off-by: Thomas Hellstrom <[email protected]>
* xorg/vmwgfx: Make vmwarectrl work also on 64-bit serversThomas Hellstrom2010-10-121-0/+1
| | | | Signed-off-by: Thomas Hellstrom <[email protected]>
* targets/egl: Fix linking with libdrm.Chia-I Wu2010-10-071-4/+6
|
* r600g: more cleanupJerome Glisse2010-09-291-27/+2
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: switch to new designJerome Glisse2010-09-281-1/+1
| | | | | | | | New design seems to be on parity according to piglit, make it default to get more exposure and see if there is any show stopper in the coming days. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: set back to correct codepaths.Dave Airlie2010-09-211-1/+1
| | | | Jerome please use git diff and git show before pushing.
* r600g: add back reference check when mapping bufferJerome Glisse2010-09-201-1/+1
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* i915g: Link with wrapper sw winsys with sconsJakob Bornecrantz2010-09-201-0/+1
|
* scons: Link against talloc in the Gallium DRI driversJakob Bornecrantz2010-09-201-0/+1
|
* r600g: alternative command stream building from contextJerome Glisse2010-09-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Winsys context build a list of register block a register block is a set of consecutive register that will be emited together in the same pm4 packet (the various r600_block* are there to provide basic grouping that try to take advantage of states that are linked together) Some consecutive register are emited each in a different block, for instance the various cb[0-7]_base. At winsys context creation, the list of block is created & an index into the list of block. So to find into which block a register is in you simply use the register offset and lookup the block index. Block are grouped together into group which are the various pkt3 group of config, context, resource, Pipe state build a list of register each state want to modify, beside register value it also give a register mask so only subpart of a register can be updated by a given pipe state (the oring is in the winsys) There is no prebuild register list or define for each pipe state. Once pipe state are built they are bound to the winsys context. Each of this functions will go through the list of register and will find into which block each reg falls and will update the value of the block with proper masking (vs/ps resource/constant are specialized variant with somewhat limited capabilities). Each block modified by r600_context_pipe_state_set* is marked as dirty and we update a count of dwords needed to emit all dirty state so far. r600_context_pipe_state_set* should be call only when pipe context change some of the state (thus when pipe bind state or set state) Then to draw primitive you make a call to r600_context_draw void r600_context_draw(struct r600_context *ctx, struct r600_draw *draw) It will check if there is enough dwords in current cs buffer and if not will flush. Once there is enough room it will copy packet from dirty block and then add the draw packet3 to initiate the draw. The flush will send the current cs, reset the count of dwords to 0 and remark all states that are enabled as dirty and recompute the number of dwords needed to send the current context. Signed-off-by: Jerome Glisse <[email protected]>
* libgl-xlib: Remove unused st_api_create_OpenGL.Chia-I Wu2010-09-171-8/+0
| | | | st/egl no longer relies on libGL for OpenGL support.
* targets/egl: Use C++ compiler to link GL/ES state trackers.Chia-I Wu2010-09-171-3/+10
| | | | | Otherwise, applications compiled with C compiler might have trouble using them.
* targets/egl: Fix crashes from loading invalid modules.Chia-I Wu2010-09-101-4/+1
| | | | Be defensive.
* gallium: Remove ST_API_OPENGL_ES1 and ST_API_OPENGL_ES2.Chia-I Wu2010-09-106-4/+50
| | | | They are no longer used.
* st/egl: Use profiles to create OpenGL ES contexts.Chia-I Wu2010-09-106-141/+66
| | | | | | | Replace all uses of ST_API_OPENGL_ES{1,2} by profiles. Having 3 st_api's to provide OpenGL, OpenGL ES 1.1, and OpenGL ES 2.0 is not a sane abstraction, since all of them share glapi for current context/dispatch management.
* libgl-xlib: Fix --enable-gallium-llvm build.Chia-I Wu2010-09-071-1/+9
| | | | Check MESA_LLVM and link to LLVM as other targets do.
* libgl-xlib: enable galahad supportBrian Paul2010-09-033-1/+18
| | | | | If the GALLIUM_GALAHAD env var is 1 we'll wrap the regular driver with the galahad validation driver.
* r600g: avoid dynamic allocation of statesJerome Glisse2010-09-011-2/+2
| | | | | | | | | | | Make state statically allocated, this kills a bunch of code and avoid intensive use of malloc/free. There is still a lot of useless duplicate function wrapping that can be kill. This doesn't improve yet performance, needs to avoid memcpy states in radeon_ctx_set_draw and to avoid rebuilding vs_resources, dsa, scissor, cb_cntl, ... states at each draw command. Signed-off-by: Jerome Glisse <[email protected]>
* graw: fix the build (missing header)Zack Rusin2010-08-271-0/+1
|
* graw: Undo late loading of graw drivers.José Fonseca2010-08-265-0/+209
| | | | | | | | | | Keith prefers a clean separation between graw applications and implementations, where apps do not link libgallium.a but instead get all functionality they need via graw interface. Although this is not incompatible with late loading of graw drivers, it it would make it very hard to maintain, as wrappers for every utility symbol exposed in graw would have to be written or generated somehow.
* graw: Remove graw-null.José Fonseca2010-08-263-158/+0
| | | | | Pointless now that the graw tests can be built independently of any graw implementation.
* graw: Dynamically load graw libraries.José Fonseca2010-08-262-50/+0
| | | | | | | | | This allows to build multiple graws libs simultaneously and avoid unnecessary rebuilds of the tests. Also remove graw_util.c from inside the graw implementation -- it was only being provided by one implementation, and graw tests were linking against gallium anyway.
* scons: Fix old script compatability logic.José Fonseca2010-08-261-10/+5
| | | | Sconscript could be invoked twice if specified in the command line.
* r300g: rename radeong_dri.so to r300_dri.soDave Airlie2010-08-253-4/+4
| | | | acked on irc by Corbin + Marek.
* make: Use C++ compiler to link stdc++ library.Brian Paul2010-08-241-1/+2
| | | | | glxinfo and glxgears run on swrast and softpipe without undefined symbol errors.
* targets/egl: Check against drm_driver_descriptor::name.Chia-I Wu2010-08-243-16/+15
| | | | | | drm_driver_descriptor::driver_name is defined to be the name of the kernel module. We should check against drm_driver_descriptor::name instead of drm_driver_descriptor::driver_name.
* targets/egl: add pipe_r600Benjamin Franzke2010-08-242-0/+40
| | | | | KNOWN ISSUE: eglShowScreenSurfaceMESA in st/egl/kms fails but st/egl/x11 works
* targets/egl: rename pipe_radeon to pipe_r300Benjamin Franzke2010-08-242-8/+8
| | | | | | | | | | | | | | st/egl/x11/x11_screen.c requests a driver named r300 not radeon KNOWN ISSUE: breaks st/egl/kms/ st/egl/kms requests a pipe named "radeon" that will not be found now so why not leaving pipe_radeon there? that was possible as long we have only r300g. now there is also r600g for which st/egl/kms also requests a pipe named "radeon" (possible solution in later commit)
* libgl-xlib: Include missing header in xlib.c.Vinson Lee2010-08-221-0/+1
| | | | Include st_api.h for st_api_create_OpenGL symbol.
* targets/egl-gdi: Implement guess_gl_api.Chia-I Wu2010-08-201-2/+37
| | | | It is needed to support calling eglGetProcAddress before eglInitialize.
* targets/egl: Link with DRI_LIB_DEPS.Chia-I Wu2010-08-171-3/+3
| | | | | Use DRI_LIB_DEPS when linking GL/GLES state trackers. This fixes missing talloc symbol errors, and is hopefully more future proof.
* Merge branch 'glsl2'Ian Romanick2010-08-163-8/+7
|\ | | | | | | | | Conflicts: src/mesa/program/prog_optimize.c
| * scons: Link talloc.José Fonseca2010-08-141-0/+1
| |
| * Merge branch 'master' into glsl2Ian Romanick2010-08-131-0/+1
| |\
| * | scons: Build the new glsl2 code.José Fonseca2010-08-131-0/+1
| | |
| * | gallium: Link DRI drivers with g++ and test with CXXJakob Bornecrantz2010-08-121-8/+5
| | | | | | | | | | | | | | | New shader compiler need libc++ runtime. This works already if we are using llvm so this just covers the !llvm case.
* | | r600g: drop libdrm_radeon linkDave Airlie2010-08-171-1/+1
| | |
* | | scons: Fix r600g build.Vinson Lee2010-08-141-1/+1
| | |