summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
Commit message (Collapse)AuthorAgeFilesLines
* 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: fix vbo sizeJerome Glisse2010-08-271-1/+1
| | | | | | Silence the kernel, vbo size is size - 1. Signed-off-by: Jerome Glisse <[email protected]>
* Revert "r600g: simplify states"Dave Airlie2010-08-278-398/+496
| | | | | | | | | 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.
* r600g: add initial if/else/endif supportDave Airlie2010-08-274-12/+170
| | | | | | | | | this adds handling for some more CF instructions and conditions also adds parameter for stack size emission These seem to pass on VS with the stack size hack but not on FS, TODO: fix FS + stack size calcs
* r600g: optimise op2 and swapped op2 emission.Dave Airlie2010-08-271-48/+37
| | | | | | this makes op2 emission smaller, since it skips instructions that don't write to the dst. not sure if this could have unwanted side effects but try it and see.
* r600g: add exp support in theory.Dave Airlie2010-08-271-1/+105
| | | | though it isn't passing the test, and this instruction is pure bonghits.
* r600g: add DPH support.Dave Airlie2010-08-271-1/+8
|
* r600g: simplify statesJerome Glisse2010-08-258-496/+398
| | | | | | | | Directly build PM4 packet, avoid using malloc (no states are bigger than 128 dwords), remove unecessary informations, remove pm4 building in favor of prebuild pm4 packet. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: Add support for PIPE_FORMAT_R32_FLOAT.Henri Verbeet2010-08-241-0/+3
|
* r600g: add XPD supportDave Airlie2010-08-241-1/+124
| | | | ported from r600c.
* r600g: add CMP support.Dave Airlie2010-08-241-1/+50
| | | | ported from r600c, fixes fp-cmp, glsl1-sqrt*
* r600g: Add support for PIPE_CAP_DEPTH_CLAMP.Henri Verbeet2010-08-232-3/+4
|
* r600g: export one component per pixel + r7xx uncompression shaderJerome Glisse2010-08-235-5/+89
| | | | | | | We need to always at least export one component (wether it's depth or color. Add valid r7xx shader program for depth decompression. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix DB decompressionJerome Glisse2010-08-226-75/+97
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: depth buffer likely needs decompression when used as textureJerome Glisse2010-08-228-34/+919
| | | | | | | | Before using depth buffer as texture, it needs to be decompressed (tile pattern of db are different from one used for colorbuffer like texture) Signed-off-by: Jerome Glisse <[email protected]>
* r600g: partialy fix texturing from depth buffer + initial support for untilingJerome Glisse2010-08-217-66/+165
| | | | | | | | | | | | | Partialy fix texturing from depth buffer, depth buffer is tiled following different tile organisation that color buffer. This properly set the tile type & array mode field of texture sampler when sampling from db resource. Add initial support to untiling buffer when transfering them, it's kind of broken by corruption the vertex buffer of previous draw. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: add POW instructionJerome Glisse2010-08-201-18/+73
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: cleanup definition, fix segfault when no valid pixel shaderJerome Glisse2010-08-203-37/+40
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: add occlusion query supportDave Airlie2010-08-206-32/+291
| | | | | Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Jerome Glisse <[email protected]>
* gallium: make all checks for PIPE_TEXTURE_2D check for PIPE_TEXTURE_RECT tooLuca Barbieri2010-08-202-1/+3
| | | | | | | Searched for them with: git grep -E '[!=]=.*PIPE_TEXTURE_2D|PIPE_TEXTURE_2D.*[!=]=|case.*PIPE_TEXTURE_2D' Behavior hasn't been changed.
* r600g: update comments about ALU src operandsAlex Deucher2010-08-192-2/+12
|
* r600g: add sin/cosDave Airlie2010-08-192-2/+123
| | | | | | | This pretty much ports the code from r600c, however it doesn't always seem to work quite perfectly, but I can't find anything in this code that is wrong. I'm guessing either literal input or constants aren't working always.
* r600g: add a chiprev type for r600/r700/evergreen instead of using familyDave Airlie2010-08-192-13/+25
|
* r600g: add SSG, SEQ, SGT and SNEDave Airlie2010-08-192-12/+88
|
* r600g: add FRC, FLR, DDX and DDYDave Airlie2010-08-181-4/+4
| | | | the first two are straight op2's and the DDX/DDY are taken from r600c.
* r600g: add SGE and SLE opcodesDave Airlie2010-08-181-2/+2
| | | | fixes fp-set-01 and glsl-fs-step
* r600g: add TXB supportDave Airlie2010-08-181-1/+1
| | | | fixes biased texturing tests
* r600g: fix TXP vs TEX in shader.Dave Airlie2010-08-182-65/+67
| | | | | | Don't do perspective for TEX, and also copy input to a temporary for TEX also add tex opcode names
* r600g: add two simple tgsi opcodes.Dave Airlie2010-08-181-2/+2
| | | | makes glsl-fs-log2 and glsl1-integer division with uniform var pass
* r600g: fix point sizeDave Airlie2010-08-181-1/+1
| | | | fixes piglit pointAtten and point-sprite tests
* r600g: fixup pitch alignment like r600c.Dave Airlie2010-08-182-3/+7
| | | | This still needs work, passes tex3d, fbo-scissor-bitmap, scissor-bitmap
* r600g: fix height calcs for miptreeDave Airlie2010-08-181-0/+1
| | | | | | | h needs to be rounded up, this probably needs revisiting when we get to tiling etc. fixes fbo-generatemipmap-npot
* r600g: emit texture level offset in CB/DB setup.Dave Airlie2010-08-181-2/+2
| | | | | | | 8 more piglit tests pass, fbo-clearmipmap, fbo-copyteximage, fbo-generatemipmap, fbo-generatemipmap-nonsquare, fbo-generatemipmap-scissor, fbo-generatemipmap-viewport, gen-teximage, gen-texsubimage
* r600g: fix fake pixel outputJerome Glisse2010-08-171-1/+1
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: add user clip plane support.Dave Airlie2010-08-174-9/+75
| | | | | | | | | Apart from the fact that the radeon.h/r600_states.h editing is a nightmare, this wasn't so bad. passes piglit user-clip test now also trivial tests. Signed-off-by: Dave Airlie <[email protected]>
* r600g: update shader capsMarek Olšák2010-08-131-5/+13
| | | | | | Sent on ML by Владимир. These values are what fglrx returns.
* r600g: fix memory leaks running gears.Dave Airlie2010-08-131-0/+5
| | | | | I noticed gears memory usage was heading skywards, some r600 "states" aren't properly refcounted, and the ctx->state is never freed.
* r600g: fix typo in stencil translate.Dave Airlie2010-08-121-1/+1
| | | | fixes piglit stencil-twoside and stencil-wrap
* r600g: fix provoking-vertex piglit test.Dave Airlie2010-08-121-8/+12
|
* r600g: improve texture format checker.Dave Airlie2010-08-124-12/+263
| | | | | | | | | This takes the r300g texture format checker and fixes it up for r600g, it passes glean texSwizzle, pixelformats, and texture_srgb tests, however I think it L8S8_SRGB is broken as is L8_SRGB, need to investigate. Signed-off-by: Dave Airlie <[email protected]>
* r600g: accept empty frag prog shaderJerome Glisse2010-08-113-3/+17
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: add src negation supportJerome Glisse2010-08-111-0/+1
| | | | | | Should fix few glBitmap cases. Signed-off-by: Jerome Glisse <[email protected]>