aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
...
* r600g: fix constant splittingDave Airlie2010-08-311-2/+2
| | | | constant splitting was broken for multi-constant cases, fixes fp1 CMP+MAD, vp1 CMP.
* r600g: fix LIT testsDave Airlie2010-08-311-2/+3
|
* r600g: add missing literalsDave Airlie2010-08-312-1/+33
| | | | | | | Also add an error if we hit this problem again, we need to do this better possibly tying the literal addition to the last flag. Signed-off-by: Dave Airlie <[email protected]>
* r600g: precompute some of the hw stateJerome Glisse2010-08-3011-216/+229
| | | | | | | | | | Idea is to build hw state at pipe state creation and reuse them while keeping a non PM4 packet interface btw winsys & pipe driver. This commit also force rebuild of pm4 packet on each call to radeon_state_pm4 which in turn slow down everythings, this will be addressed. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix depth buffer decompression after states reworkJerome Glisse2010-08-301-1/+1
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fixup states generation in winsys.Dave Airlie2010-08-3015-335/+295
| | | | | | | | | | | | | | | | | | | | The current states code had an unhealthy relationship between that had to somehow magically align themselves, editing either place meant renumbering all states after the one you were on, and it was pretty unapproachable code. This replaces the huge types structures with a simple type + sub type struct, which is keyed on an stype enum in radeon.h. Each stype can have a per-shader type subclassing (4 types supported, PS/VS/GS/FS), and also has a number of states per-subtype. So you have 256 constants per 4 shaders per one CONSTANT stype. The interface from the driver is changed to pass in the tuple, (stype, id, shader_type), and we look for this. If radeon_state_shader ever shows up on profile, it could use a hashtable based on stype/shader_type to speed things up. Signed-off-by: Dave Airlie <[email protected]>
* gallivm: Compute the 4 texel offsets for linear filtering en ensemble.José Fonseca2010-08-303-126/+280
|
* gallivm: Disable LLVM's pretty stack trace dumper.José Fonseca2010-08-301-0/+8
| | | | | | | | By default LLVM adds a signal handler to output a pretty stack trace. This signal handler is never removed, causing problems when unloading the shared object where the gallium driver resides. Thanks to Chris Li for finding this.
* gallivm: Correct copy'n'pasted comments.José Fonseca2010-08-301-4/+4
|
* gallivm: Fix lp_build_sum_vector.José Fonseca2010-08-301-6/+4
| | | | | | | The result is scalar, so when argument is zero/undef we can pass vector zero/undef. Also, support the scalar case.
* svga: Fix CMP translation for vertex shader targets.Michal Krol2010-08-301-0/+19
| | | | | SVGA3DOP_CMP is not supported for vertex shaders; use SLT + LRP instead.
* svga: Re-emit bound rendertargets and texture samplers at the beginning of ↵José Fonseca2010-08-304-8/+27
| | | | | | | | | every command buffer. Only non null resources. To ensure that relocations are emitted for every resource currently referred.
* r300g: fix warning in winsysMarek Olšák2010-08-301-0/+1
|
* r600g: add DST opcode support.Dave Airlie2010-08-301-1/+41
|
* r600g: add SCS support.Dave Airlie2010-08-301-6/+69
|
* r600g: fix warning introduced by last commit.Dave Airlie2010-08-301-1/+0
|
* r600g: add initial relative support to assemblerDave Airlie2010-08-304-6/+45
| | | | | | passes another ~20 piglits. /me starts to run out low hanging fruit around now.
* r600g: add KILP supportDave Airlie2010-08-303-5/+23
| | | | passes glsl1-discard tests
* r600g: fix SSG and op3 neg writingDave Airlie2010-08-302-14/+15
| | | | 8 more piglits, mainly the two SSG tests.
* r600g : add basic loop support.Dave Airlie2010-08-303-23/+247
| | | | | | Adds BGNLOOP, BRK, CONT, ENDLOOP support, ported from r600c. 17 piglits more on r300g.tests.
* r600g: use the values from the correct literalsBas Nieuwenhuizen2010-08-301-4/+23
| | | | | | Created an array for literals as we should not always use the last declared literal. Signed-off-by: Dave Airlie <[email protected]>
* r600g: added literals where needed for POW instructionBas Nieuwenhuizen2010-08-301-0/+9
| | | | | | Fixes size calculation for the bytecode buffer. Signed-off-by: Dave Airlie <[email protected]>
* r600g: drop file I added by mistake in a previous commitDave Airlie2010-08-291-186/+0
|
* gallium: Remove unnecessary header from p_state.h.Vinson Lee2010-08-281-1/+0
| | | | Remove p_screen.h.
* nvfx: Remove util_is_pot in favor of util_is_power_of_two.Vinson Lee2010-08-282-5/+5
| | | | This is a follow up to commit 89b2897220acfacdc431f138377fbcec9f0ea812.
* util: Include missing header in u_draw.h.Vinson Lee2010-08-281-0/+1
| | | | Include p_state.h for complete type to pipe_draw_info.
* util: Add forward declaration in u_transfer.h.Vinson Lee2010-08-281-0/+1
|
* r300g,u_blitter: use u_framebufferMarek Olšák2010-08-294-38/+6
| | | | Removing another function duplication in u_blitter.
* util: remove util_is_pot in favor of util_is_power_of_twoMarek Olšák2010-08-296-18/+8
| | | | The function was duplicated.
* softpipe: Include missing header in sp_flush.c.Vinson Lee2010-08-281-0/+1
| | | | Include p_screen.h for complete type to pipe_screen.
* draw: Include missing header in draw_vs_llvm.c.Vinson Lee2010-08-281-0/+1
| | | | Include p_screen.h for completely type to pipe_screen.
* llvmpipe: Include missing header in lp_flush.c.Vinson Lee2010-08-281-0/+1
| | | | Include p_screen.h for complete type to pipe_screen.
* r300g: fix blitting between 2D NPOT mipmapsMarek Olšák2010-08-284-23/+51
| | | | | | | | | Even though MIP filtering is not supported, we can bind an arbitrary mipmap as the zero mipmap level. NPOT textures now follow GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MIN_LOD. This fixes piglit/fbo-copyteximage.
* r300g: fix min/max lod computationMathias Fröhlich2010-08-281-2/+2
|
* r300g: set the correct value in PVS_NUM_CNTLRSMarek Olšák2010-08-281-1/+1
| | | | As per docs.
* llvmpipe: Remove unnecessary header.Vinson Lee2010-08-281-1/+0
|
* trace: Don't try to dump the rgba array if nullJakob Bornecrantz2010-08-281-1/+4
|
* r600g: fix vbo sizeJerome Glisse2010-08-271-1/+1
| | | | | | Silence the kernel, vbo size is size - 1. Signed-off-by: Jerome Glisse <[email protected]>
* graw: fix the build (missing header)Zack Rusin2010-08-271-0/+1
|
* llvmpipe: use util_iround in place of roundKeith Whitwell2010-08-271-1/+1
| | | | Fix mingw build.
* util: fix typo in MAX4Keith Whitwell2010-08-271-1/+1
| | | | Thanks to Michal for spotting it.
* llvmpipe: eliminate tri->dx, tri->dy valuesKeith Whitwell2010-08-272-42/+39
| | | | Use an internal struct for line setup information.
* llvmpipe: point sprites rasterizationHui Qi Tay2010-08-277-10/+93
| | | | | Point sprites now done in the rasterizer setup code instead of going through the draw module.
* llvmpipe: native point rasterization with better pixel rasterizationHui Qi Tay2010-08-271-16/+18
| | | | | | | | A few subpixel_snap and fixed width changes. Conflicts: src/gallium/drivers/llvmpipe/lp_setup_point.c
* llvmpipe: native point rasterizationHui Qi Tay2010-08-278-5/+262
| | | | | | | | Conflicts: src/gallium/drivers/llvmpipe/lp_setup_context.h src/gallium/drivers/llvmpipe/lp_setup_line.c src/gallium/drivers/llvmpipe/lp_setup_tri.c
* llvmpipe: update line rasterization code to current masterKeith Whitwell2010-08-274-374/+227
|
* util: add MIN4, MAX4Keith Whitwell2010-08-271-0/+3
|
* llvmpipe: native line rasterization with correct pixel rasterizationHui Qi Tay2010-08-271-29/+213
| | | | | Line rasterization that follows diamond exit rule. Can still optimize logic for start/endpoints.
* llvmpipe: native rasterization for linesHui Qi Tay2010-08-2711-22/+685
| | | | | Rasterize lines directly by treating them as 4-sided polygons. Still need to check the exact pixel rasteration.
* llvmpipe: add lp_setup_coef to makefileKeith Whitwell2010-08-271-0/+2
|