summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* r600g: remove more of unused codeMarek Olšák2011-08-041-13/+0
| | | | This is a follow-up to f6df430a85141f6a384c18079fb5b2ad848dac0d.
* r600g: take into account force_add_cf in popsVadim Girlin2011-08-031-15/+24
| | | | | | | | | | | When we have two ENDIFs in a row, we shouldn't modify the pop_count for the same alu clause twice. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38163 Note: this is a candidate for the 7.11 branch. Signed-off-by: Alex Deucher <[email protected]>
* r600g: use backend mask for occlusion queriesVadim Girlin2011-08-031-0/+4
| | | | | | | | | | | | | Use backend_map kernel query if supported, otherwise analyze ZPASS_DONE results to get the mask. Fixes lockups with predicated rendering due to incorrect query buffer initialization on some cards. Note: this is a candidate for the 7.11 branch. Signed-off-by: Vadim Girlin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* r600g: remove dummy function r600_bo_offsetMarek Olšák2011-08-024-26/+22
| | | | Always returned 0.
* r600g: remove unused codeMarek Olšák2011-08-021-1/+0
|
* gallium/util: add functions for manipulating swizzlesMarek Olšák2011-08-025-41/+6
| | | | Some of those have been in drivers already.
* r600g: fix up vs export handlingAlex Deucher2011-07-294-4/+27
| | | | | | | | | | | | | Certain attributes (position, psize, etc.) don't count as params; they are handled separately by the hw. However, the VS is required to export at least one param and r600_shader_from_tgsi() takes care of adding a dummy export if there is none. Make sure the VS param export count in the SPI properly accounts for this. Note: This is a candidate for the 7.11 branch. Signed-off-by: Alex Deucher <[email protected]>
* softpipe: When doing write_all_cbufs, don't stomp over the color.Eric Anholt2011-07-281-4/+12
| | | | | | | We have to make it through this loop processing the color multiple times, so we can't go overwriting it on our first color buffer. Reviewed-by: Brian Paul <[email protected]>
* r600g: fix vs export countVadim Girlin2011-07-282-2/+2
| | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39572 Signed-off-by: Vadim Girlin <[email protected]>
* r300g: copy the compiler from r300cMarek Olšák2011-07-2669-25/+17038
| | | | | | | | What a beast. r300g doesn't depend on files from r300c anymore, so r300c is now left to its own fate. BTW 'make test' can be invoked from the gallium/r300 directory to run some compiler unit tests.
* winsys/radeon: remove usage parameter from buffer_createMarek Olšák2011-07-254-6/+3
|
* winsys/radeon: add R300 infix to winsys feature namesMarek Olšák2011-07-253-3/+3
|
* winsys/radeon: simplify how value queries workMarek Olšák2011-07-258-43/+32
| | | | | This drops the get_value query and adds a function query_info, which returns all the values in one nice structure.
* r600g: use file_max instead of file_count to determine reg offsetChristian König2011-07-241-3/+3
| | | | | | Otherwise shaders with skipped inputs/outputs doesn't work correctly. Signed-off-by: Christian König <[email protected]>
* gallium/softpipe: Don't clobber dest color/alpha before masking.Younes Manton2011-07-231-89/+96
| | | | | | | | | The blend_quad function clobbers the actual render target color/alpha values while applying the destination blend factor, which results in restoring the wrong value during the masking stage for write-disabled channels. Reviewed-by: Brian Paul <[email protected]>
* llvmpipe: Unit tests for arithmetic functions.José Fonseca2011-07-223-2/+298
| | | | | | Conflicts: src/gallium/drivers/llvmpipe/SConscript
* Merge branch 'gallium-polygon-stipple'Brian Paul2011-07-2116-148/+383
|\
| * softpipe: use the polygon stipple utility moduleBrian Paul2011-07-219-14/+131
| | | | | | | | | | | | | | | | | | | | This is an alternative to the draw module's polygon stipple stage. The softpipe implementation here is just a test. The advantange of using the new polygon stipple utility module (with other drivers) is we can avoid software vertex processing in the draw module and get much better performance. Polygon stipple doesn't require special vertex processing like the other draw module stage.
| * softpipe: implement fragment shader variantsBrian Paul2011-07-2113-117/+251
| | | | | | | | We'll need shader variants to accomodate the new polygon stipple utility.
| * softpipe: use tgsi_shader_info fields for fragcoord origin, center, etc.Brian Paul2011-07-214-17/+5
| |
| * softpipe: remove obsolete commentBrian Paul2011-07-211-4/+0
| |
| * softpipe: rename a functionBrian Paul2011-07-211-7/+7
| |
* | nouveau: hook up video decoding with nouveau_contextChristoph Bumiller2011-07-218-1/+56
| | | | | | | | | | This doesn't include nvfx since its context struct is not derived from common nouveau_context (yet).
* | llvmpipe: include LLVM version number in name stringBrian Paul2011-07-191-1/+3
| |
* | llvmpipe: fix build with LLVM 3.0svnTobias Droste2011-07-191-4/+15
| | | | | | | | | | | | | | | | | | LLVM 3.0svn introduced a new type system. It defines a new way to create named structs and removes the (now not needed) LLVMInvalidateStructLayout function. See revision 134829 of LLVM. Signed-off-by: Tobias Droste <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* | r600g: Get rid of leftover PB_USAGE_* flags.Henri Verbeet2011-07-182-26/+2
| | | | | | | | | | | | | | These happen to work because their values are the same as the equivalent PIPE_TRANSFER_* flags, but it's still misleading. Signed-off-by: Henri Verbeet <[email protected]>
* | nv50: fix bogus error message about 3d surfacesChristoph Bumiller2011-07-161-1/+3
| |
* | r600g: fix queries and predicationVadim Girlin2011-07-152-11/+23
| | | | | | | | | | | | | | Use all zpass data for predication instead of the last block only. Use query buffer as a ring instead of reusing the same area for each new BeginQuery. All query buffer offsets are in bytes to simplify offsets math.
* | i915g: move declaration before codeBrian Paul2011-07-141-1/+2
| |
* | nv50,nvc0: extensive surface format renaming to get consistencyChristoph Bumiller2011-07-148-191/+220
| | | | | | | | Now the component ordering is consistent and matches gallium again.
* | nv50,nvc0: add support for multi-sample resourcesChristoph Bumiller2011-07-1423-213/+308
| |
* | nv50,nvc0: add correct storage type for Z32_FLOATChristoph Bumiller2011-07-142-0/+9
| |
* | nv50,nvc0: unify nvc0_miptree and nv50_miptree structsChristoph Bumiller2011-07-1414-425/+535
| | | | | | | | | | Share some functions and restructure miptree creation a little. Prepare for multi-sample resources.
* | nv50,nvc0: don't advertise unaligned texture format supportChristoph Bumiller2011-07-142-24/+24
| | | | | | | | | | | | | | Because we don't support them. For instance, R32G32B32 is not R32G32B32X32 as was assumed. Add support for R8G8B8X8_UNORM instead of R8G8B8_UNORM surfaces.
* | softpipe: fix various warnings about int/float/double conversions, etcBrian Paul2011-07-131-15/+15
| |
* | softpipe: Remove sp_video_context.c from SConscript.Vinson Lee2011-07-131-1/+0
| | | | | | | | | | | | sp_video_context.c was added to SConscript in commit ed24e19070b7dff12670151b2d184f31c845ccae (pipe-video merge) but no file of that name was added.
* | Merge branch 'pipe-video'Christian König2011-07-1311-8/+112
|\ \
| * | r600g: reenable hardware blits for STATIC and IMMUTABLE resourcesChristian König2011-07-131-10/+8
| | | | | | | | | | | | Getting the driver in sync with mainline.
| * | r600g: revert "set BLEND_CLAMP depending on clamp_fragment_color"Christian König2011-07-131-8/+3
| | | | | | | | | | | | BLEND_CLAMP doesn't seems to be the right way to implement "ARB_color_buffer_float".
| * | [g3dvl] add some more PIPE_VIDEO_CAPsChristian König2011-07-124-6/+29
| | |
| * | r600g: revert "support textures with scaled number formats"Christian König2011-07-111-1/+1
| | | | | | | | | | | | We should add those probably when merged to master.
| * | [g3dvl] remove some stale nv40 filesChristian König2011-07-112-80/+0
| | |
| * | [g3dvl] remove pipe_video_context from nouveauChristian König2011-07-115-84/+22
| | |
| * | Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-07-1143-1715/+1977
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r600/r600_pipe.c src/gallium/drivers/r600/r600_state_inlines.h
| * | | [g3dvl] and finally remove pipe_video_contextChristian König2011-07-085-30/+7
| | | |
| * | | [g3dvl] move video buffer creation out of video contextChristian König2011-07-083-0/+7
| | | |
| * | | [g3dvl] remove the unused priv member from pipe_video_contextChristian König2011-07-083-3/+3
| | | |
| * | | [g3dvl] make pipe_context mandatory for creation pipe_video_contextChristian König2011-07-089-134/+20
| | | |
| * | | [g3dvl] rename is_format_supported to is_video_format_supported and move it ↵Christian König2011-07-083-0/+6
| | | | | | | | | | | | | | | | into screen object
| * | | [g3dvl] rename get_param to get_video_param and move into screen objectChristian König2011-07-075-3/+42
| | | |