summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
* gallium: move clear paths from rgba to a pointer to a color union (v2)Dave Airlie2011-09-1810-48/+44
| | | | | | | | | | | | | | | This moves the gallium interface for clears from using a pointer to 4 floats to a pointer to a union of float/unsigned/int values. Notes: 1. the value is opaque. 2. only when the value is used should it be interpretered according to the surface format it is going to be used with. 3. float clears on integer buffers and vice-versa are undefined. v2: fixed up vega and graw, dropped hunks that shouldn't have been in patch. Signed-off-by: Dave Airlie <airlied@redhat.com>
* gallivm: fix build with LLVM 3.0svnTobias Droste2011-09-151-1/+10
| | | | | | | | | LLVM 3.0svn added SubtargetInfo as additional parameter to createMCDisassembler() and createMCInstPrinter(). See revision 139237 of LLVM. Signed-off-by: Tobias Droste <tdroste@gmx.de> Signed-off-by: Brian Paul <brianp@vmware.com>
* util: add util_format_is_luminance/intensity/rgb(), etcBrian Paul2011-09-152-1/+112
| | | | Reviewed-by: José Fonseca <jfonseca@vmware.com>
* g3dvl: Add max_references parameter to vl_create_decoder()Emeric Grange2011-09-144-5/+6
| | | | Signed-off-by: Emeric Grange <emeric.grange@gmail.com>
* g3dvl: Add get_clear_color capabilityEmeric Grange2011-09-142-0/+18
| | | | | Signed-off-by: Emeric Grange <emeric.grange@gmail.com> Reviewed-by: Christian König <deathsimple@vodafone.de>
* g3dvl: Various whitespace cleanups found while reading some codeEmeric Grange2011-09-144-18/+20
| | | | Signed-off-by: Emeric Grange <emeric.grange@gmail.com>
* gallivm: remove unused varsBrian Paul2011-09-131-5/+0
|
* gallium: minor comments for util_format_channel_description fieldsBrian Paul2011-09-131-2/+2
|
* pb_buffer: inline 'base' sub-structMarek Olšák2011-09-119-91/+87
|
* tgsi: fix typo in commit 324ac982d8e7Emil Velikov2011-09-101-1/+1
| | | | Reviewed-by: Bryan Cain <bryancain3@gmail.com>
* gallium: add TGSI opcodes UARL and UCMPBryan Cain2011-09-102-0/+33
| | | | | | | They are needed by glsl_to_tgsi for an efficient implementation using native integers. Reviewed-by: Brian Paul <brianp@vmware.com>
* draw/llvm: combine draw_llvm_generate() and draw_llvm_generate_elts()Brian Paul2011-09-101-273/+97
| | | | | | | | These two functions were nearly the same with lots of duplicated code. Now pass in a boolean 'elts' flag and use a few conditionals to implement the linear vs. indexed cases. Reviewed-by: José Fonseca <jfonseca@vmware.com>
* u_blitter: add texture array supportMarek Olšák2011-09-101-11/+41
| | | | Reviewed-by: Dave Airlie <airlied@redhat.com>
* gallium: add shadow 1D and 2D array samplers to TGSIMarek Olšák2011-09-107-7/+66
| | | | And filling in all the switch statements in auxiliary. Mostly untested.
* rtasm,translate: Disable on Mingw-w64.José Fonseca2011-09-062-2/+2
| | | | | | Causes crash and stack corruption. Needs more investigation. Disable for now.
* gallium: add missing formats for ARB_vertex_type_2_10_10_10_revDave Airlie2011-09-051-1/+8
| | | | | | | This just reorgs one define in csv file, and adds all the new formats that are needed for this extension. Signed-off-by: Dave Airlie <airlied@redhat.com>
* gallivm: fix build with LLVM 3.0svnTobias Droste2011-09-051-4/+10
| | | | | | | LLVM 3.0svn moved TargetRegistry.h and TargetSelect.h. See revision 138450 of LLVM. Signed-off-by: Tobias Droste <tdroste@gmx.de>
* tgsi: add support for texture offsets to the TGSI IR. (v2)Dave Airlie2011-09-028-9/+132
| | | | | | | | | | | | | This adds tokens for texture offsets, to store 4 * swizzled vec 3 for use in TXF and other opcodes. It also contains TGSI exec changes for softpipe to use this code, along with GLSL->TGSI support for TXF. v2: add some more comments, add back padding I removed. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Brian Paul <brianp@vmware.com>
* g3dvl: extend the functionality of the compositorChristian König2011-09-012-29/+77
| | | | Prepares for vdpau menu overlay.
* gallium: add R8A8 and A8R8 UNORM formatsChristian König2011-09-011-0/+2
| | | | | | They are mostly used for menu overlay in video decoding. Signed-off-by: Christian König <deathsimple@vodafone.de>
* gallium: try to cleanup a bit of the format mess created with pipe-video mergeChristian König2011-09-013-80/+4
| | | | | | Start with correctly defining IA44 and AI44 formats. Signed-off-by: Christian König <deathsimple@vodafone.de>
* vl: Fix include styleKai Wasserbäch2011-08-2920-63/+63
| | | | | | | | | | | As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
* util: Fix include styleKai Wasserbäch2011-08-294-18/+18
| | | | | | | | | | | As explained in the thread starting at [0], the internal include style should be »#include "path/to/header.h"« for non-system includes. [0] <http://news.gmane.org/find-root.php?message_id=%3c4E5802BE.6020206%40vmware.com%3e> Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: Brian Paul <brianp@vmware.com>
* g3dvl: Fix a bug not decoding the last 32-64 bits of an mpeg2 bitstream.Christian König2011-08-292-8/+7
| | | | Another bug found by Andy Furniss.
* g3dvl: use pointer_to_uintptr() to silence a cast warningBrian Paul2011-08-261-1/+2
|
* pp: initialize the sample maskChristoph Bumiller2011-08-261-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>
* g3dvl: s/inline/INLINE/ to fix MSVC buildBrian Paul2011-08-261-3/+3
|
* g3dvl: fix compilation failure on MSVCBrian Paul2011-08-261-1/+2
| | | | I assume the intention of "mb = {}" was to zero-initialize it.
* scons: don't compile some files with -gstabs if using mingw32Brian Paul2011-08-261-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.
* g3dvl: Rewrite the mpeg 1&2 bitstream parserChristian König2011-08-264-1751/+923
| | | | | | | 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>
* g3dvl: Use a single texture for luma and chroma dataChristian König2011-08-266-140/+91
| | | | | Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Younes Manton <younes.m@gmail.com>
* g3dvl: Rework the decoder interface part 5/5Christian König2011-08-261-4/+11
| | | | | | | | 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>
* g3dvl: Rework the decoder interface part 4/5Christian König2011-08-262-2/+0
| | | | | | | | 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>
* g3dvl: Rework the decoder interface part 3/5Christian König2011-08-266-82/+301
| | | | | | | | 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>
* g3dvl: Rework the decoder interface part 2/5Christian König2011-08-262-0/+19
| | | | | | | | 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>
* g3dvl: Rework the decoder interface part 1/5Christian König2011-08-262-220/+254
| | | | | | | | | 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>
* pp: add files to Makefile.sourcesBrian Paul2011-08-251-0/+6
|
* Merge branch 'kasanen-post-process-v2'Brian Paul2011-08-2515-0/+4707
|\ | | | | | | | | | | Conflicts: src/gallium/auxiliary/Makefile src/gallium/auxiliary/SConscript
| * pp/main queue: Add the PP headersLauri Kasanen2011-08-193-0/+215
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp/main queue: Add pp_program.[ch]Lauri Kasanen2011-08-192-0/+201
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp/main queue: Add pp_init.cLauri Kasanen2011-08-191-0/+283
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp/main queue: Add pp_run.cLauri Kasanen2011-08-191-0/+188
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp: Add Jimenez' MLAALauri Kasanen2011-08-192-0/+646
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp: Add the MLAA areamapLauri Kasanen2011-08-191-0/+2821
| | | | | | | | | | | | | | | | The areamap contains precomputed data on different aliasing types. It is necessary for good performance. Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp: Cel-shade filterLauri Kasanen2011-08-192-0/+117
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp: Color filtersLauri Kasanen2011-08-192-0/+149
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * pp: DocsLauri Kasanen2011-08-191-0/+87
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
| * aux/Makefile,SConscript: Build PPLauri Kasanen2011-08-192-0/+12
| | | | | | | | | | Signed-off-by: Lauri Kasanen <cand@gmx.com> Signed-off-by: Brian Paul <brianp@vmware.com>
* | tgsi: add TXF support.Dave Airlie2011-08-252-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>
* | tgsi: add TXQ support. (v2)Dave Airlie2011-08-252-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>