summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
Commit message (Collapse)AuthorAgeFilesLines
* g3dvl: Add max_references parameter to vl_create_decoder()Emeric Grange2011-09-142-1/+2
| | | | Signed-off-by: Emeric Grange <[email protected]>
* gallium: add TGSI opcodes UARL and UCMPBryan Cain2011-09-101-1/+4
| | | | | | | They are needed by glsl_to_tgsi for an efficient implementation using native integers. Reviewed-by: Brian Paul <[email protected]>
* gallium: add shadow 1D and 2D array samplers to TGSIMarek Olšák2011-09-101-2/+4
| | | | And filling in all the switch statements in auxiliary. Mostly untested.
* gallium: add PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERSMarek Olšák2011-09-101-1/+1
| | | | v2: remove PIPE_CAP_ARRAY_TEXTURES in favor of the new CAP.
* Define INLINE macro in terms of inline.José Fonseca2011-09-081-11/+14
|
* gallium: add missing formats for ARB_vertex_type_2_10_10_10_revDave Airlie2011-09-051-0/+7
| | | | | | | 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 <[email protected]>
* gallium: add caps for MIN/MAX texel offsets.Dave Airlie2011-09-021-1/+3
| | | | | | | | As per Brian's suggestion, add caps for drivers that support texture offsets to advertise a min/max via TGSI, also use it in the state tracker. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* tgsi: add support for texture offsets to the TGSI IR. (v2)Dave Airlie2011-09-021-1/+19
| | | | | | | | | | | | | 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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* 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 <[email protected]>
* gallium: try to cleanup a bit of the format mess created with pipe-video mergeChristian König2011-09-011-2/+3
| | | | | | Start with correctly defining IA44 and AI44 formats. Signed-off-by: Christian König <[email protected]>
* include/pipe: Fix include styleKai Wasserbäch2011-08-292-6/+6
| | | | | | | | | | | 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 <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* g3dvl: Rewrite the mpeg 1&2 bitstream parserChristian König2011-08-261-0/+11
| | | | | | | Based on work of Maarten Lankhorst this time. Signed-off-by: Christian König <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* g3dvl: Rework the decoder interface part 5/5Christian König2011-08-262-2/+15
| | | | | | | | Make setting the quant matrixes a generic interface. Also removes setting the quant matrix from the XvMC interface Signed-off-by: Christian König <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* g3dvl: Rework the decoder interface part 4/5Christian König2011-08-261-4/+8
| | | | | | | | Make the picture_structure enum spec complient. Also remove it from the compositor. Signed-off-by: Christian König <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* g3dvl: Rework the decoder interface part 3/5Christian König2011-08-262-56/+79
| | | | | | | | 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 <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* g3dvl: Rework the decoder interface part 2/5Christian König2011-08-261-1/+2
| | | | | | | | 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 <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* g3dvl: Rework the decoder interface part 1/5Christian König2011-08-261-28/+42
| | | | | | | | | 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 <[email protected]> Reviewed-by: Younes Manton <[email protected]>
* gallium: add PIPE_OS_ANDROID supportChia-I Wu2011-08-212-0/+10
| | | | | | | Android uses Linux kernel and its own C runtime. It resembles PIPE_OS_LINUX a lot with some minor exceptions. Reviewed-by: Brian Paul <[email protected]>
* gallium: silence warnings about trailing commas in enum listsBrian Paul2011-08-082-2/+2
|
* Merge branch 'glsl-to-tgsi'Bryan Cain2011-08-041-0/+1
|\ | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_atom_pixeltransfer.c src/mesa/state_tracker/st_program.c
| * gallium: add PIPE_SHADER_CAP_INTEGERSBryan Cain2011-08-011-0/+1
| |
* | gallium: extend resource_resolve to accommodate BlitFramebufferChristoph Bumiller2011-08-043-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | Resolve via glBlitFramebuffer allows resolving a sub-region of a renderbuffer to a different location in any mipmap level of some other texture, and, with a new extension, even scaling. Therefore, location and size parameters are needed. The mask parameter was added because resolving only depth or only stencil of a combined buffer is possible as well. Full information about the blit operation allows the drivers to take the most efficient path they possibly can.
* | darwin: Use machine/endian.h to determine endiannessJeremy Huddleston2011-07-311-0/+9
| | | | | | | | Signed-off-by: Jeremy Huddleston <[email protected]>
* | Fix PPC detection on darwinJeremy Huddleston2011-07-311-2/+2
| | | | | | | | | | | | Fixes regression introduced by 7004582c1894ede839c44e292b413fe4916d7e9e Signed-off-by: Jeremy Huddleston <[email protected]>
* | g3dvl: change picture parameter of decode_bitstream to general versionChristian König2011-07-151-1/+1
| | | | | | | | Using pipe_mpeg12_picture_desc was unintentional here.
* | gallium: don't use enum bitfields in p_video_state.hBrian Paul2011-07-141-6/+6
| | | | | | | | | | | | | | Silences many warnings about "type of bit-field ‘field_select’ is a GCC extension". Since the field sizes were 8 and 16 bits, just use basic types.
* | gallium: put video-related enums in separate headerBrian Paul2011-07-144-45/+79
| | | | | | | | | | | | | | | | | | | | | | The forward references to video enum types in p_context.h causes a massive number of compiler warnings (ISO C forbids forward references to ‘enum’ types). By putting the new video enums in a separate header that can be included by p_context.h and p_screen.h we can avoid this. Acked-by Christian König <[email protected]>
* | [g3dvl] add some more PIPE_VIDEO_CAPsChristian König2011-07-121-1/+4
| |
* | [g3dvl] revert some unintended white space changesChristian König2011-07-111-9/+12
| |
* | [g3dvl] and finally remove pipe_video_contextChristian König2011-07-083-29/+13
| |
* | [g3dvl] move video buffer creation out of video contextChristian König2011-07-082-8/+12
| |
* | [g3dvl] remove the unused priv member from pipe_video_contextChristian König2011-07-082-4/+1
| |
* | [g3dvl] move compositor creation and handling directly into the state trackersChristian König2011-07-081-83/+0
| |
* | [g3dvl] remove sampler view handling from video contextChristian König2011-07-081-31/+0
| |
* | [g3dvl] remove create_surface from video contextChristian König2011-07-081-7/+0
| |
* | [g3dvl] make pipe_context mandatory for creation pipe_video_contextChristian König2011-07-081-1/+3
| |
* | [g3dvl] rename is_format_supported to is_video_format_supported and move it ↵Christian König2011-07-082-7/+8
| | | | | | | | into screen object
* | [g3dvl] rename get_param to get_video_param and move into screen objectChristian König2011-07-073-6/+11
| |
* | Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-07-042-23/+6
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac src/gallium/drivers/r600/r600_state_inlines.h src/gallium/tests/trivial/Makefile src/gallium/winsys/g3dvl/dri/XF86dri.c src/gallium/winsys/g3dvl/dri/driclient.c src/gallium/winsys/g3dvl/dri/driclient.h src/gallium/winsys/g3dvl/dri/xf86dri.h src/gallium/winsys/g3dvl/dri/xf86dristr.h src/gallium/winsys/r600/drm/r600_bo.c
| * | st-api: Rework how drawables are invalidated v3.Thomas Hellstrom2011-06-291-19/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The api and the state tracker manager code as well as the state tracker code assumed that only a single context could be bound to a drawable. That is not a valid assumption, since multiple contexts can bind to the same drawable. Fix this by making it the state tracker's responsibility to update all contexts binding to a drawable Note that the state trackers themselves don't use atomic stamps on frame-buffers. Multiple context rendering to the same drawable should be protected by the application. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | scons: make embedding orthogonal to the platformJosé Fonseca2011-06-171-4/+0
| |/ | | | | | | To enable embedding in platforms other than linux.
* | Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-06-091-7/+9
|\| | | | | | | | | | | Conflicts: src/gallium/tests/unit/u_format_test.c src/gallium/winsys/r600/drm/r600_hw_context.c
| * gallium: fix comments for pipe_stream_output_stateBrian Paul2011-06-081-7/+9
| |
* | [g3dvl] rework video buffer format handlingChristian König2011-06-071-3/+2
| |
* | [g3dvl] move dummy quantification into xvmc state trackerChristian König2011-06-071-2/+2
| |
* | [g3dvl] split quant matrix out of picture infoChristian König2011-06-052-4/+7
| |
* | [g3dvl] rename map/unmap to begin/end frameChristian König2011-06-051-2/+2
| | | | | | | | | | mapping and unmapping of buffers is just an implementation detail. begining and ending an frame is much more descriptive
* | [g3dvl] remove unused and dublicate fields from picture structureChristian König2011-06-051-10/+0
| |
* | Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-06-051-1/+1
|\|
| * gallium: include limits.h in p_config.hDave Airlie2011-05-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | We are getting inconsistent methods for endian detection (same answer when it works, just doesn't work on some platforms) depending on whether __GLIBC__ is defined, which of course depends on include ordering before p_config.h Just make p_config.h include limits.h to solve this. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Brian Paul <[email protected]>