aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_asm.c
Commit message (Collapse)AuthorAgeFilesLines
* r600g: Silence uninitialized variable warnings.Vinson Lee2010-10-271-4/+4
|
* r600g: add assembler support for all the kcache fields.Dave Airlie2010-10-261-1/+6
|
* r600g: Also clear bc data when we're destroying a shader.Tilman Sauerbeck2010-10-241-0/+36
| | | | | | | [airlied: remove unused vars] Signed-off-by: Tilman Sauerbeck <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* r600g: drop use_mem_constant.Dave Airlie2010-10-051-2/+1
| | | | since we plan on using dx10 constant buffers everywhere.
* r600g: add assembler support for other vtx fetch fields.Dave Airlie2010-10-011-1/+5
| | | | | this shouldn't change behaviour, just push the choice of what to do out to the shader.
* r600g: delete old pathJerome Glisse2010-09-291-4/+3
| | | | | | Lot of clean can now happen. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: break alu clause earlierAndre Maasikas2010-09-241-2/+3
| | | | we still have constants to add and next int may need also 6 slots
* r600g: deal with overflow of VTX/TEX CF clauses.Dave Airlie2010-09-211-2/+8
| | | | running piglit's texrect-many caused the vtx to overflow.
* r600g: only emit uses waterfall on r6xx hw.Dave Airlie2010-09-191-1/+1
|
* r600g; add uses waterfall to asm cf for r6xx.Dave Airlie2010-09-191-0/+1
| | | | On r6xx if an MOVA instruction is emitted we should set this bit.
* r600g: misc cleanupJohn Doe2010-09-151-2/+2
| | | | | | | Avoid using r600_screen structure to get ptr to radeon winsys structure. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: Silence uninitialized variable warning.Vinson Lee2010-09-151-1/+1
|
* r600g: fix warning in r600 pipe driverDave Airlie2010-09-101-12/+13
|
* r600g: add initial evergreen supportDave Airlie2010-09-101-2/+31
| | | | | | | | | | adds shader opcodes + assembler support (except ARL) uses constant buffers add interp instructions in fragment shader adds all evergreen hw states adds evergreen pm4 support. this runs gears for me on my evergreen
* r600g: add initial bank swizzle support.Dave Airlie2010-09-081-2/+274
| | | | | this is ported from r600c mostly, bank swizzling is real messy and I don't think I got enough sleep last night to fully understand it.
* r600g: split opcodes out and add wrapper around usage.Dave Airlie2010-09-081-0/+1
| | | | | | This splits the r600 opcodes out of the sq file and adds a wrapper so we can convert to evergreen opcodes later without touching these functions too much.
* r600g: add support for constants in memory buffers.Dave Airlie2010-09-081-1/+7
| | | | | | DX9 constants were in the constant file, and evergreen no longer support cfile. r600/700 can also use constants in memory buffers, so add the code (disabled for now) to enable that as precursor for evergreen.
* r600g: add missing printf operandDave Airlie2010-09-061-1/+1
|
* r600g: add missing literalsDave Airlie2010-08-311-0/+3
| | | | | | | 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: add initial relative support to assemblerDave Airlie2010-08-301-0/+5
| | | | | | passes another ~20 piglits. /me starts to run out low hanging fruit around now.
* r600g: fix SSG and op3 neg writingDave Airlie2010-08-301-12/+8
| | | | 8 more piglits, mainly the two SSG tests.
* r600g : add basic loop support.Dave Airlie2010-08-301-2/+19
| | | | | | Adds BGNLOOP, BRK, CONT, ENDLOOP support, ported from r600c. 17 piglits more on r300g.tests.
* r600g: add initial if/else/endif supportDave Airlie2010-08-271-6/+52
| | | | | | | | | 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: add a chiprev type for r600/r700/evergreen instead of using familyDave Airlie2010-08-191-13/+24
|
* r600g: accept empty frag prog shaderJerome Glisse2010-08-111-2/+1
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: avoid reemiting literal, avoid scheduling empty csJerome Glisse2010-08-101-1/+2
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix some warningsMarek Olšák2010-08-091-2/+2
|
* r600g: fix LIT + fix multiple constant one ALU + fix ALU block splittingJerome Glisse2010-08-031-1/+5
| | | | | | | | | | | | | Make sure LIT fills all slot for instruction (can't do W instruction without having the Z slot filled with at least a NOP). ALU instruction can't access more than 4 constant, move constant to temporary reg if we reach the limit. Fix ALU block splitting, only split ALU after ALU with last instruction bit sets. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: split alu block to conform to limit + RCP opcodeJerome Glisse2010-08-021-1/+3
| | | | Signed-off-by: Jerome Glisse <[email protected]>
* r600g: mipmap early support + EX2/ABS instruction + cullingJerome Glisse2010-07-291-0/+2
| | | | | | | | | | Add mipmap support (demos/src/redbook/mipmap is working) Add EX2/ABS shader instruction support. Add face culling support. Misc fixes. Signed-off-by: Jerome Glisse <[email protected]>
* r600g: first pass at texture supportJerome Glisse2010-07-231-4/+87
| | | | | | | This add texture support to the assembler, generated code is wrong (tested against working dump). Signed-off-by: Jerome Glisse <[email protected]>
* r600g: drop compiler stuff and switch over dumb tgsi assemblerJerome Glisse2010-07-231-0/+385
Writing a compiler is time consuming and error prone in order to allow r600g to further progress in the meantime i wrote a simple tgsi assembler, it does stupid thing but i would rather keep the code simple than having people trying to optimize code it does. Signed-off-by: Jerome Glisse <[email protected]>