aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* radeonsi: move draw state into new handlingChristian König2012-07-247-558/+589
| | | | | | Split it out into si_state_draw.c Signed-off-by: Christian König <[email protected]>
* radeonsi: move constants to new state handlingChristian König2012-07-245-64/+59
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move sampler states into new handlingChristian König2012-07-244-107/+115
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move shaders to new handlingChristian König2012-07-246-336/+295
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move spi into new handlingChristian König2012-07-245-80/+46
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move init state to new handlingChristian König2012-07-245-38/+43
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move draw_info to new state handlingChristian König2012-07-246-98/+84
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move CB_TARGET_MASK into fb/blend stateChristian König2012-07-244-12/+23
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move stencil_ref to new handlingChristian König2012-07-247-78/+37
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move dsa state to new handlingChristian König2012-07-248-155/+149
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move infeered fb/rs state to new handlingChristian König2012-07-245-65/+52
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move rasterizer state into new handlingChristian König2012-07-248-200/+174
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move framebuffer to new handlingChristian König2012-07-247-448/+666
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move viewport to new handlingChristian König2012-07-246-46/+39
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move scissor state to new state handlingChristian König2012-07-245-53/+26
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move clip state to new handlingChristian König2012-07-245-58/+26
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move blend color to new state handlingChristian König2012-07-245-26/+19
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: move blender to new state handlingChristian König2012-07-247-191/+178
| | | | Signed-off-by: Christian König <[email protected]>
* radeonsi: rework state handling v2Christian König2012-07-248-1/+358
| | | | | | | | Add a complete new state handling for SI. v2: fix spelling error Signed-off-by: Christian König <[email protected]>
* r600g: don't emit forbidden reg with old kernel on evergreenJerome Glisse2012-07-231-1/+3
| | | | | | Fix https://bugs.freedesktop.org/show_bug.cgi?id=52313 Signed-off-by: Jerome Glisse <[email protected]>
* r600g: don't emit forbidden register on old kernelJerome Glisse2012-07-232-2/+6
| | | | | | Fix https://bugs.freedesktop.org/show_bug.cgi?id=52313 Signed-off-by: Jerome Glisse <[email protected]>
* radeon/llvm: Fix a bug with IF LOGICALNZ with int operandVincent Lejeune2012-07-233-11/+17
| | | | Signed-off-by: Tom Stellard <[email protected]>
* llvmpipe: use runtime loop instead of static loop for looping over quadsRoland Scheidegger2012-07-203-72/+516
| | | | | | | | | | | | | | | | | | | | | This can potentially cut shader program size by a factor of 4 for 4-wide execution respectively 2 for 8-wide execution and while this ratios aren't quite reached for more complex shaders it can be close. Could not really measure a performance difference so far except for trivial shaders (glxgears). There seems to be a fair amount of unnecessary move's generated especially at the beginning it might be possible to optimize those away somehow. Things aren't quite as clean, some additional stuff needs to be done for keeping both paths working (though llvm might be able to optimize this away). glxgears seems to lose about 5-10% of performance, looking at the generated shaders this is actually less than I'd think it would be - both 4 and 8-wide shaders, despite containing a loop actually have about 10% more instructions in total, and will have roughly 50% more executed instructions (though mostly cheap ones). Need to figure out how to reduce overhead... v2: keep complex interpolation for 4-wide mode, adapt to interface changes. Reviewed-by: José Fonseca <[email protected]>
* nv30: Support negative offsets in indirect constant access.Roy Spliet2012-07-204-8/+15
| | | | | | | | Fixes piglit vp-address-01 amongst several others. Signed-off-by: Roy Spliet <[email protected]> Reviewed-by: Lucas Stach <[email protected]> Tested-by: Lucas Stach <[email protected]>
* nv50/ir: set position before i instead of i->next in NV50LoweringPreSSA::visitBryan Cain2012-07-201-7/+2
| | | | | Fixes rendering glitches in Psychonauts such as Raz's eyes flickering white. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=51962.
* softpipe: Fix segfault with fbo-cubemap.Olivier Galibert2012-07-191-1/+6
| | | | | | | | | | | | | | | | | | | The cube sampler generates two-dimensional texture coordinates and hence passes NULL for the array for the third one. The actual 2D sampler, lower in the pipe, knew not to used that array since it didn't need it. But the samplers have become single-texel and the coordinate array dereference has been moved up one step, to a level where the code does not know only two coordinates are used. Hence the segfault. The simplest fix by far is to add a third dummy coordinate array in the call to the next pipe step, which will be dereferenced to an harmless 0 which then will be happily ignored by the sampler. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=52250 Signed-off-by: Olivier Galibert <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* r600g: setup streamout before calling last r600_need_cs_space before drawingMarek Olšák2012-07-181-6/+6
| | | | | This fixes CS checker errors due to registers not being initialized, because the flush occured after dirty state was emitted but before drawing.
* softpipe: Take all lods into account when texture sampling.Olivier Galibert2012-07-182-766/+645
| | | | | | | | | | | | This patch churns a lot because it needs to change 4-wide filters into single pixel filters, since each fragment may use a different filter. The only case not entirely supported is the anisotropic filtering. Not sure what we want to do there, since a full quad is required by that filter. Signed-off-by: Olivier Galibert <[email protected]> Reviewed-by: Brian Paul <[email protected]>
* r600g: implement wait-free buffer transfer for DISCARD_RANGEMarek Olšák2012-07-184-16/+50
| | | | | Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
* r600g: accelerate buffer copyingMarek Olšák2012-07-181-23/+47
| | | | | | | This will be useful for efficient handling of the DISCARD transfer flags. Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
* r600g: update R600_MAX_DRAW_CS_DWORDS to take draw-opaque into accountMarek Olšák2012-07-182-4/+2
|
* r600g: move VGT_STRMOUT_DRAW_OPAQUE_OFFSET initialization into invariant stateMarek Olšák2012-07-183-1/+3
|
* r600g: only set the index type if drawing is indexedMarek Olšák2012-07-181-4/+5
|
* r600g: remove debug code for streamoutMarek Olšák2012-07-181-11/+0
|
* r600g: inline r600_context_draw_opaque_countMarek Olšák2012-07-183-32/+21
|
* r600g: fix alphatest without a colorbuffer on evergreenMarek Olšák2012-07-181-1/+4
|
* r600g: fix alphatest without a colorbuffer on r6xx-r7xxMarek Olšák2012-07-181-6/+10
|
* r600g: always derive alphatest state from the first colorbufferMarek Olšák2012-07-184-14/+22
|
* r600g: atomize alphatest stateMarek Olšák2012-07-186-46/+52
|
* r600g: try to fix line stippling with lineloopsMarek Olšák2012-07-181-1/+2
| | | | The piglit test is failing, but visually it looks almost correct.
* r600g: optimize uploading depth texturesMarek Olšák2012-07-181-11/+5
| | | | | | | Make it only copy the portion of a depth texture being uploaded and not the whole 2D layer. There is also a little code cleanup.
* r600g: remove needless wrapper r600_texture_depth_flushMarek Olšák2012-07-183-35/+15
|
* r600g: init_flushed_depth_texture should be able to report errorsMarek Olšák2012-07-184-18/+11
|
* r600g: fix lockups with and enable dual source blending on evergreenMarek Olšák2012-07-172-4/+4
| | | | GL_ARB_blend_func_extended is now enabled on all chipsets.
* r600g: remove unused code after conversion of sampler viewsMarek Olšák2012-07-177-249/+5
|
* r600g: convert sampler view emission into atomsMarek Olšák2012-07-176-134/+238
| | | | | Vertex and constant buffers are emitted in the same way. This is mainly a simplification of the code. The cleanup is in another patch.
* r600g: only make constant buffers dirty if there's something to updateMarek Olšák2012-07-171-4/+6
|
* r600g: properly track which textures are depthMarek Olšák2012-07-173-19/+26
| | | | This fixes the issue with have_depth_texture never being set to false.
* r600g: consolidate and optimize sampler states changes for evergreenMarek Olšák2012-07-171-14/+22
| | | | Only set sampler states which changed.
* r600g: don't invalidate texture caches when setting sampler statesMarek Olšák2012-07-171-6/+0
| | | | Changing sampler states doesn't change resource bindings.