summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* r600g: move all query code into r600_query.cMarek Olšák2012-03-055-456/+414
| | | | | | | | And rename or inline functions where appropriate. There is no reason to keep this stuff in r600_hw_context.c. Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
* Revert "gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY"Marek Olšák2012-03-0512-57/+6
| | | | | | | This reverts commit 0950086376b1c8b7fb89eda81ed7f2f06dee58bc. It was decided to refactor the transfer API instead of adding workarounds to address the performance issues.
* r300/compiler: Add support for inline literalsTom Stellard2012-03-0412-9/+192
| | | | | On R500 chips, shader instructions can take 7-bit (3-bit mantissa, 4-bit exponent) floating point values as inputs in place of registers.
* vl: fix shader in/out numberingChristian König2012-03-035-10/+10
| | | | | | Fix all the other wrong numberings. Signed-off-by: Christian König <[email protected]>
* vl/compositor: fix shader in/out numberingChristian König2012-03-021-5/+5
| | | | | | | Michel pointed out that my assumption of a global index namespace is incorrect and breaks r300g. Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfaceQueryPutBitsYCbCrCapabilitiesChristian König2012-03-021-1/+33
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfacePutBitsYCbCrChristian König2012-03-021-1/+82
| | | | | | v2: the csc_matrix is optional Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement VideoSurfaceGetBitsYCbCrChristian König2012-03-021-8/+53
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfaceQueryGetPutBitsNativeCapabilitiesChristian König2012-03-021-1/+23
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfaceGetBitsNativeChristian König2012-03-021-1/+36
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfacePutBitsNativeChristian König2012-03-023-15/+43
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfaceQueryPutBitsIndexedCapabilitiesChristian König2012-03-021-1/+43
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: fix default swizzle for Output/Bitmap samplersChristian König2012-03-024-6/+24
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: add support for per vertex colorsChristian König2012-03-021-2/+28
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement BitmapSurfaceQueryCapabilitiesChristian König2012-03-021-1/+35
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement OutputSurfaceRenderBitmapSurfaceChristian König2012-03-021-1/+40
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement BitmapSurfaceGetParametersChristian König2012-03-021-1/+14
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement BitmapSurfacePutBitsNativeChristian König2012-03-021-2/+31
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: implement BitmapSurfaceCreate/DestroyChristian König2012-03-022-3/+81
| | | | Signed-off-by: Christian König <[email protected]>
* st/vdpau: avoid an unnessasary copyChristian König2012-03-025-21/+112
| | | | | | | Delay the actual mixer rendering until we really know which surface is the real destination. Signed-off-by: Christian König <[email protected]>
* vl/csc: simplify matrix handlingChristian König2012-03-028-85/+82
| | | | | | A csc matrix is only 4x3 not 4x4, also define a VDPAU compatible type for it. Signed-off-by: Christian König <[email protected]>
* vl/compositor: add support for per layer dst areasChristian König2012-03-025-44/+51
| | | | Signed-off-by: Christian König <[email protected]>
* vl/compositor: add per vertex color suportChristian König2012-03-026-35/+88
| | | | | | Used in subtitles, for example. Signed-off-by: Christian König <[email protected]>
* vl/compositor: replace pipe_video_rect with u_rectChristian König2012-03-0210-62/+55
| | | | | | So we support things like flipping also. Signed-off-by: Christian König <[email protected]>
* vl/compositor: split shaders and stateChristian König2012-03-0210-204/+311
| | | | Signed-off-by: Christian König <[email protected]>
* Revert "gallivm: Change getExtent and readByte to non-const with llvm-3.1."Vinson Lee2012-03-011-8/+0
| | | | | | | | | This reverts commit d5a6c172547d8964f4d4bb79637651decaf9deee. llvm-3.1svn r151687 makes MemoryObject accessor members const again. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* vl: move dirty area handling into winsys abstractionChristian König2012-03-017-10/+56
| | | | | | Fixing uninitialized areas in SwapBuffers mode. Signed-off-by: Christian König <[email protected]>
* vl: hide X latency by using asynchronous requestsChristian König2012-03-011-11/+37
| | | | Signed-off-by: Christian König <[email protected]>
* vl: use SwapBuffers instead of CopyBuffersChristian König2012-03-013-42/+11
| | | | | | | | | This should speed things up a bit, but also shows some bugs with the kernel implementation. v2: require xcb-dri2 version 1.8 Signed-off-by: Christian König <[email protected]>
* st/xvmc: remove dst buffer texture workaroundChristian König2012-03-013-23/+11
| | | | Signed-off-by: Christian König <[email protected]>
* vl: rewrite vl DRI backend using XCBChristian König2012-03-016-858/+147
| | | | | | v2: also set array_size of texture Signed-off-by: Christian König <[email protected]>
* gallivm: Update comments and prototype of vector-selects.José Fonseca2012-03-011-20/+31
| | | | | No runtime behavior change. As vector selects are still not very well supported by LLVM.
* r300g: init chan=0 to silence warningBrian Paul2012-02-291-1/+1
|
* util: replace format equality test with compatibility test in blit codeBrian Paul2012-02-291-1/+21
| | | | | | | | | | This lets us use the resource_copy_region() path when blitting from R8G8B8A8 to R8G8B8x8, for example. v2: be smarter when src_format==dst_format Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: José Fonseca <[email protected]>
* util: better comment for util_is_format_compatible()Brian Paul2012-02-291-2/+3
|
* util: fix assertions in u_blitter.c codeBrian Paul2012-02-291-11/+11
| | | | | | | Assertions of the form assert(a && b) should be written as separate assertions so that you can actually tell which part is false when there's a failure. Reviewed-by: Marek Olšák <[email protected]>
* svga: fix max_lod clamping in update_tss_binding()Brian Paul2012-02-291-2/+2
| | | | | | | | | After biasing we need to clamp to be sure we don't exceed the number of levels in the mipmap. This fixes an assertion at svga_sampler_view.c:70 v2: simplify the biasing, clamping code per Jose's suggestion. Reviewed-by: José Fonseca <[email protected]>
* st/vdpau: fix use of *.o in Makefile.vdpauChristian König2012-02-291-2/+2
| | | | Signed-off-by: Christian König <[email protected]>
* st/xvmc: fix use of *.o in Makefile.xvmcChristian König2012-02-291-2/+2
| | | | Signed-off-by: Christian König <[email protected]>
* gallivm: add major integer opcodes to the tgsi action handlerDave Airlie2012-02-281-1/+382
| | | | | | | | | | | | | | | This adds support for all the opcodes needed for native integer support with GLSL 1.20 enabled, and some of the ones for GLSL1.30 support. I've split them between non-cpu and cpu along the same lines Tom's code did for the other ones I think, but I'm open to review on which ones should go where. With instance ids fixed I get no regressions on my box here with LLVM 2.8, will test with later LLVMs as well. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: drop deprecated opcodesDave Airlie2012-02-281-8/+0
| | | | | | These are integer opcodes not deprecated ones. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: only do rcp/mul for floatingDave Airlie2012-02-281-1/+2
| | | | | | | rcp asserts on type.floating so don't go passing non-floating things into it. Signed-off-by: Dave Airlie <[email protected]>
* svga: Advertise SVGA3D_DEVCAP_MAX_POINT_SIZE.José Fonseca2012-02-284-7/+15
| | | | | | | | | | | Backends usually advertise a SVGA3D_DEVCAP_MAX_POINT_SIZE between 63 and 256, so an hardcoded max point size of 80 is often incorrect. This limitation does not apply for anti-aliased points (as they are done via draw module) but we still advertise the same limit for both, because all others pipe drivers do. Reviewed-by: Brian Paul <[email protected]>
* gallium: remove trailing comma to silence warningBrian Paul2012-02-281-1/+1
|
* gallivm: add frem support to the lp_build_mod helper.Dave Airlie2012-02-281-1/+2
| | | | | | for completeness. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: add bitarit xor and not ops.Dave Airlie2012-02-282-0/+49
| | | | Signed-off-by: Dave Airlie <[email protected]>
* gallivm: add integer and unsigned mod arit functions. (v2)Dave Airlie2012-02-282-0/+25
| | | | | | use a single entry point, as per Jose's suggestion. Signed-off-by: Dave Airlie <[email protected]>
* tgsi: remove trailing comma to silence warningBrian Paul2012-02-271-1/+1
|
* svga: Remove unused SVGA_TEX_UNITS constant.José Fonseca2012-02-271-1/+0
|
* svga: Clamp advertised PIPE_SHADER_CAP_MAX_TEMPS to SVGA3D_TEMPREG_MAX.José Fonseca2012-02-271-2/+2
| | | | | | | | Some backends may advertise more temps than SVGA3D_TEMPREG_MAX, but the driver is hardwired to only support up to the value defined by SVGA3D_TEMPREG_MAX, so clamp to it. Reviewed-by: Brian Paul <[email protected]>