summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2010-08-31llvmpipe: intrinsics versions of build_mask functionsKeith Whitwell
2010-08-31r600g: fix up depth write swizzles.Dave Airlie
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.
2010-08-31r600g: fix fp-fragment-position test.Dave Airlie
2010-08-31r600g: fix typo in last commitDave Airlie
2010-08-31r600g: fix position input to fragment shader.Dave Airlie
this fixes a few if the fs shader tests, 10 more piglits
2010-08-31r600g: remove unneeded function call from scsDave Airlie
2010-08-31r600g: make LIT work properlyDave Airlie
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
2010-08-31r600g: fixup trig functions when input is a literalDave Airlie
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
2010-08-31r600g: make sure LIT splits constantsDave Airlie
2010-08-31r600g: fix constant splittingDave Airlie
constant splitting was broken for multi-constant cases, fixes fp1 CMP+MAD, vp1 CMP.
2010-08-31r600g: fix LIT testsDave Airlie
2010-08-31r600g: add missing literalsDave Airlie
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 <airlied@redhat.com>
2010-08-30r600g: precompute some of the hw stateJerome Glisse
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 <jglisse@redhat.com>
2010-08-30r600g: fix depth buffer decompression after states reworkJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-30r600g: fixup states generation in winsys.Dave Airlie
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 <airlied@redhat.com>
2010-08-30svga: Fix CMP translation for vertex shader targets.Michal Krol
SVGA3DOP_CMP is not supported for vertex shaders; use SLT + LRP instead.
2010-08-30svga: Re-emit bound rendertargets and texture samplers at the beginning of ↵José Fonseca
every command buffer. Only non null resources. To ensure that relocations are emitted for every resource currently referred.
2010-08-30r300g: fix warning in winsysMarek Olšák
2010-08-30r600g: add DST opcode support.Dave Airlie
2010-08-30r600g: add SCS support.Dave Airlie
2010-08-30r600g: fix warning introduced by last commit.Dave Airlie
2010-08-30r600g: add initial relative support to assemblerDave Airlie
passes another ~20 piglits. /me starts to run out low hanging fruit around now.
2010-08-30r600g: add KILP supportDave Airlie
passes glsl1-discard tests
2010-08-30r600g: fix SSG and op3 neg writingDave Airlie
8 more piglits, mainly the two SSG tests.
2010-08-30r600g : add basic loop support.Dave Airlie
Adds BGNLOOP, BRK, CONT, ENDLOOP support, ported from r600c. 17 piglits more on r300g.tests.
2010-08-30r600g: use the values from the correct literalsBas Nieuwenhuizen
Created an array for literals as we should not always use the last declared literal. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-30r600g: added literals where needed for POW instructionBas Nieuwenhuizen
Fixes size calculation for the bytecode buffer. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-28nvfx: Remove util_is_pot in favor of util_is_power_of_two.Vinson Lee
This is a follow up to commit 89b2897220acfacdc431f138377fbcec9f0ea812.
2010-08-29r300g,u_blitter: use u_framebufferMarek Olšák
Removing another function duplication in u_blitter.
2010-08-29util: remove util_is_pot in favor of util_is_power_of_twoMarek Olšák
The function was duplicated.
2010-08-28softpipe: Include missing header in sp_flush.c.Vinson Lee
Include p_screen.h for complete type to pipe_screen.
2010-08-28llvmpipe: Include missing header in lp_flush.c.Vinson Lee
Include p_screen.h for complete type to pipe_screen.
2010-08-28r300g: fix blitting between 2D NPOT mipmapsMarek Olšák
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.
2010-08-28r300g: fix min/max lod computationMathias Fröhlich
2010-08-28r300g: set the correct value in PVS_NUM_CNTLRSMarek Olšák
As per docs.
2010-08-28llvmpipe: Remove unnecessary header.Vinson Lee
2010-08-28trace: Don't try to dump the rgba array if nullJakob Bornecrantz
2010-08-27r600g: fix vbo sizeJerome Glisse
Silence the kernel, vbo size is size - 1. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-27llvmpipe: use util_iround in place of roundKeith Whitwell
Fix mingw build.
2010-08-27llvmpipe: eliminate tri->dx, tri->dy valuesKeith Whitwell
Use an internal struct for line setup information.
2010-08-27llvmpipe: point sprites rasterizationHui Qi Tay
Point sprites now done in the rasterizer setup code instead of going through the draw module.
2010-08-27llvmpipe: native point rasterization with better pixel rasterizationHui Qi Tay
A few subpixel_snap and fixed width changes. Conflicts: src/gallium/drivers/llvmpipe/lp_setup_point.c
2010-08-27llvmpipe: native point rasterizationHui Qi Tay
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
2010-08-27llvmpipe: update line rasterization code to current masterKeith Whitwell
2010-08-27llvmpipe: native line rasterization with correct pixel rasterizationHui Qi Tay
Line rasterization that follows diamond exit rule. Can still optimize logic for start/endpoints.
2010-08-27llvmpipe: native rasterization for linesHui Qi Tay
Rasterize lines directly by treating them as 4-sided polygons. Still need to check the exact pixel rasteration.
2010-08-27llvmpipe: add lp_setup_coef to makefileKeith Whitwell
2010-08-27llvmpipe: intrinsics version of triangle coeficient calculationKeith Whitwell
Looks nice, but makes almost no impact on performance - maybe a percent or so in isosurf, nothing elsewhere. May be of use later on.
2010-08-27r300g: Include missing header in r300_texture.h.Vinson Lee
Include p_compiler.h for uint32_t and boolean symbols.
2010-08-27Revert "r600g: simplify states"Dave Airlie
This reverts commit bd25e23bf3740f59ce8859848c715daeb9e9821f. Apart from introducing a lot of hex magic numbers and being highly impenetable code, it causes lots of lockups on an average piglit run that always runs without lockups. Always run piglit before/after doing big things like this.