summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
Commit message (Collapse)AuthorAgeFilesLines
* r600g: fix incorrect state naming in pipe_sampler vs pipe_sampler_viewDave Airlie2010-09-021-1/+1
| | | | fixes problems in valgrind with uninitialised values.
* r600g: silence compiler warningJerome Glisse2010-09-011-1/+1
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: refix db/cb stateJerome Glisse2010-09-016-32/+119
| | | | | Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix up default state differences between r6xx and r7xxAlex Deucher2010-09-011-6/+16
| | | | Signed-off-by: Alex Deucher <[email protected]>
* r600g: avoid dynamic allocation of statesJerome Glisse2010-09-0110-927/+399
| | | | | | | | | | | Make state statically allocated, this kills a bunch of code and avoid intensive use of malloc/free. There is still a lot of useless duplicate function wrapping that can be kill. This doesn't improve yet performance, needs to avoid memcpy states in radeon_ctx_set_draw and to avoid rebuilding vs_resources, dsa, scissor, cb_cntl, ... states at each draw command. Signed-off-by: Jerome Glisse <[email protected]>
* Revert "Revert "r600g: precompute some of the hw state""Jerome Glisse2010-09-017-88/+142
| | | | | | | | This reverts commit 1fa7245c348cb7aced81f1672140f64cb6450e2f. Conflicts: src/gallium/drivers/r600/r600_state.c
* nouveau/nvfx: Remove enforcement of bit depth being same as front bufferPatrice Mandin2010-09-011-17/+0
| | | | Signed-off-by: Patrice Mandin <[email protected]>
* r600g: correct cb/zb offset emits.Dave Airlie2010-09-011-2/+2
| | | | This fixes fbo-3d and fbo-cubemap
* Revert "r600g: precompute some of the hw state"Dave Airlie2010-09-017-142/+184
| | | | | | | | | | This reverts commit de0b76cab22caa9fc7260f80acb8f151ccced6c5, its pre-computes the texture state wrong, you can't just use an array of levels, since you can have FBOs to depth texture slices inside a level as well it would get really messy quickly. Probably need to split commits like this up into pieces for each piece of state, so we can revert bits easier in case of regressions. This also break 5 piglit tests, and valgrind starts to warn about invalid read/writes after this.
* r600g: fix typo causing segfault.Dave Airlie2010-09-011-1/+1
| | | | | | | | fixes warning that r600_blit.c: In function ‘r600_resource_copy_region’: r600_blit.c:136: warning: passing argument 1 of ‘util_resource_copy_region’ from incompatible pointer type and also 7 more piglit tests.
* r600g: fix glean texCube and shadows.Dave Airlie2010-09-011-5/+149
| | | | add cube and shadow support to the texture code.
* llvmpipe: slightly simplify build_maskKeith Whitwell2010-08-311-6/+2
|
* llvmpipe: combine linear mask calculationKeith Whitwell2010-08-312-15/+84
|
* llvmpipe: intrinsics versions of build_mask functionsKeith Whitwell2010-08-311-1/+77
|
* r600g: fix up depth write swizzles.Dave Airlie2010-08-311-1/+4
| | | | | | | | For some reason r600c, emits extra instructions in the FP to do the depth write output swizzle, I'm not sure this is required, so here I'm doing it in the exports. this fixes the mesa trivial demos tri-depthwrite and tri-depthwrite2, it doesn't fix the glsl1 gl_FragDepth writing test however.
* r600g: fix fp-fragment-position test.Dave Airlie2010-08-311-0/+1
|
* r600g: fix typo in last commitDave Airlie2010-08-311-1/+1
|
* r600g: fix position input to fragment shader.Dave Airlie2010-08-311-0/+7
| | | | this fixes a few if the fs shader tests, 10 more piglits
* r600g: remove unneeded function call from scsDave Airlie2010-08-311-4/+0
|
* r600g: make LIT work properlyDave Airlie2010-08-311-8/+3
| | | | | | | this is a bit of a workaround, something is wrong with the literal emits here so we just use the trig copy function to copy the immd to a temp at start of op. fix VP/FP LIT tests
* r600g: fixup trig functions when input is a literalDave Airlie2010-08-311-9/+67
| | | | | | | | | So as the trig functions used up the literal spots for the PI work, if the arg0 was an immediate we'd hit failure, so copy the literal before starting. add some tracking of max temp used to avoid trashing temp regs. 5 more piglits, fp1 COS,SCS,SIN tests
* r600g: make sure LIT splits constantsDave Airlie2010-08-311-14/+11
|
* 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-307-184/+142
| | | | | | | | | | 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-308-117/+85
| | | | | | | | | | | | | | | | | | | | 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]>
* 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]>
* 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.
* r300g,u_blitter: use u_framebufferMarek Olšák2010-08-292-3/+3
| | | | Removing another function duplication in u_blitter.
* util: remove util_is_pot in favor of util_is_power_of_twoMarek Olšák2010-08-291-1/+1
| | | | 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.
* 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
|