summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)AuthorFilesLines
2011-08-27android: add support for i915gChia-I Wu4-0/+87
Quickly tested with 945GME. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work and some do not.
2011-08-27android: add support for vmwgfxChia-I Wu4-0/+90
Quickly tested with VMWare Workstation 7.1.4 on Linux with GeForce GT220. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB visual works. However, due to missing PIPE_FORMAT_R8G8B8A8_UNORM support, those with RGBA visual do not.
2011-08-27winsys/i915: share the source listChia-I Wu3-11/+8
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
2011-08-27winsys/svga: share the source listChia-I Wu3-21/+13
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
2011-08-27nouveau: share the source listsChia-I Wu12-149/+91
For each driver, factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
2011-08-27r300g: share the source listChia-I Wu3-114/+63
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Note that $(TOP)/src/glsl/ralloc.c and $(TOP)/src/mesa/program/register_allocate.c are removed from C_SOURCES in Makefile.sources and added back in Makefile and SConscript. The idea is that they are not part of r300g. But having them in libr300.a makes build non-GL targets such as the compiler tests or g3dvl much easier. Also, for practical reason, TOP would be an undefined variable in Makefile.sources.
2011-08-27i915g: share the source listChia-I Wu3-53/+30
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
2011-08-27svga: share the source listChia-I Wu3-97/+50
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
2011-08-27targets/egl-static: fix nouveau and vmwgfx for AndroidChia-I Wu1-0/+10
drmVersion and driver specific ioctls are used to get the PCI ID from a DRM fd. Eexpand the mechanism to nouveau and vmwgfx, except that for nouveau, only the vendor ID is needed, and for vmwgfx, always assume SVGA II.
2011-08-26Merge branch 'master' of git://anongit.freedesktop.org/mesa/mesaStéphane Marchesin307-9191/+30442
2011-08-26g3dvl: use pointer_to_uintptr() to silence a cast warningBrian Paul1-1/+2
2011-08-26svga: include LLVM in name string in debug buildsBrian Paul1-2/+11
2011-08-26pp: initialize the sample maskChristoph Bumiller1-0/+2
We cannot rely on pipe drivers to default to non-zero. Fixes pp being a no-op on nv50. Reviewed-by: Lauri Kasanen <cand@gmx.com>
2011-08-26st/xorg: Fix solid fills for formats other than PICT_a8r8g8b8.Michel Dänzer1-13/+13
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
2011-08-26r600g: Hook up xorg state tracker.Michel Dänzer3-0/+199
Mostly copied from r300g. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2011-08-26r600g: Handle PIPE_TRANSFER_MAP_DIRECTLY.Michel Dänzer1-0/+3
If the state tracker tries to map the resource directly but we can't or don't want to do that, fail to create a transfer. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2011-08-26st/xorg: Disable dirty throttling by default.Michel Dänzer1-1/+1
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2011-08-26st/xorg: Only damage non-front source in DRI2 CopyRegion hook.Michel Dänzer1-7/+9
Based on a vmwgfx xa/saa fix. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2011-08-26g3dvl: s/inline/INLINE/ to fix MSVC buildBrian Paul1-3/+3
2011-08-26g3dvl: fix compilation failure on MSVCBrian Paul1-1/+2
I assume the intention of "mb = {}" was to zero-initialize it.
2011-08-26scons: don't compile some files with -gstabs if using mingw32Brian Paul1-0/+4
Compiling some (large) files with i686-pc-mingw32-gcc 4.2.2 (at least) and the -gstabs option triggers a compiler error. Use this work-around to simply compile the effected files without -gstabs.
2011-08-26g3dvl: Rewrite the mpeg 1&2 bitstream parserChristian König5-1751/+934
Based on work of Maarten Lankhorst this time. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Use a single texture for luma and chroma dataChristian König6-140/+91
Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 5/5Christian König5-22/+34
Make setting the quant matrixes a generic interface. Also removes setting the quant matrix from the XvMC interface Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 4/5Christian König6-29/+11
Make the picture_structure enum spec complient. Also remove it from the compositor. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 3/5Christian König11-361/+437
Revert back to a macroblock based interface. The structure used tries to keep as close to the spec as possible. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 2/5Christian König10-16/+61
Implement PIPE_CAP_NUM_BUFFERS_DESIRED giving the decoder control over the number of buffers a state tracker should allocate. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26g3dvl: Rework the decoder interface part 1/5Christian König7-316/+404
First of all get ride of the decode_buffer structure, while still giving the decoder the ability to organize it's buffers depending on the needs of the state tracker. Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
2011-08-26tgsi: update tgsi.rst for TXQDave Airlie1-2/+14
add some info on the TXQ opcode. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-08-25i915g: Fix off-by-one in scissors.David Reveman1-2/+2
2011-08-25i915g: Fix case where texcoords can overlap with fragpos/frontface.Stéphane Marchesin1-3/+3
2011-08-25i915g: Improve the flush heuristic by using the previous frame's number of ↵Stéphane Marchesin4-6/+18
vertices.
2011-08-25r600g: fix replace_gpr_with_pv_psVadim Girlin1-1/+1
Instructions with 3 source operands have no write mask, so we may replace their destinations with PV/PS in the next group even if their dst.write is 0. Note: This is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2011-08-25r600g: fix check_and_set_bank_swizzleVadim Girlin1-10/+20
Need to do full check when not all bank swizzles in the group are forced (e.g. when trying to merge interp_* group with the next instruction) Note: This is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2011-08-25pp: add files to Makefile.sourcesBrian Paul1-0/+6
2011-08-25Merge branch 'kasanen-post-process-v2'Brian Paul20-4/+4754
Conflicts: src/gallium/auxiliary/Makefile src/gallium/auxiliary/SConscript
2011-08-25softpipe: add const qualifier to silence warningsBrian Paul1-1/+1
2011-08-25softpipe: implement TXF support via get_texel callbackDave Airlie1-0/+69
This just calls the texel fetch functions directly bypassing the sampling, notes: 1: loops inside switch should be more optimal. 2: borders can be sampled though only up to border depth, outside that its undefined. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-08-25tgsi: add TXF support.Dave Airlie2-1/+59
This is a straight texel fetch with no filtering or clamping. It uses integers to specify the i/j/k (from EXT_gpu_shader4). To enable this I had to add another hook into the tgsi sampler so that we could easily bypass all the filtering sample does. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-25softpipe: add get_dims callback for TXQ support. (v2)Dave Airlie1-0/+40
This adds the get_dims callback that is called from the tgsi exec_txq. It returns values as per EXT_gpu_program4. v2: fix one indent + use a switch (slighty modified from Brian) Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-25tgsi: add TXQ support. (v2)Dave Airlie2-1/+31
this adds another callback in the sampler struct containing get_dims entry point. This is used to query the driver for the texture resource dimensions for the resource bound to the current sampler. v2: remove unusued variable, fix indent Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-08-25d3d1x: save to correct slot in xs_set_constant_buffersChristoph Bumiller1-2/+2
2011-08-25d3d1x: fix xs_set_samplersChristoph Bumiller1-1/+2
2011-08-25android: add support for r600gChia-I Wu5-0/+135
Tested with a Radeon HD 6250. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work but some don't (with serious rendering defects). Reviewed-by: Marek Olšák <maraeo@gmail.com>
2011-08-25winsys/radeon: share the source listChia-I Wu3-9/+7
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <maraeo@gmail.com>
2011-08-25winsys/r600: share the source listChia-I Wu3-13/+10
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <maraeo@gmail.com>
2011-08-25r600g: share the source listChia-I Wu3-31/+19
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <maraeo@gmail.com>
2011-08-24llvmpipe: add more restrict keywordsBrian Paul1-4/+4
Put restrict in the function definitions to silence MSVC warnings about incompatible assignments in "func = lp_tile_foobar;" when func was declared with restrict keywords but the rhs function wasn't. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2011-08-24r600g: fill out missing entries in opcode tables.Dave Airlie1-0/+36
this just adds the missing opcodes as unsupported. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-08-24winsys/svga: use os_mmap() for memory mappingChia-I Wu1-5/+6
os_mmap() guarantees large file support across OSes.