r300/compiler: Add support for inline literals
authorTom Stellard <tstellar@gmail.com>
Sat, 14 Jan 2012 13:08:33 +0000 (08:08 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 5 Mar 2012 00:36:27 +0000 (19:36 -0500)
commitbefcce264c8bf8fdac233e6a01cadc595a1d11d3
treed94c7bab725c2b349bffe9176061b0e99d2f8c52
parent95594bae47d8b3302be188e6f0be2d69c5507bb3
r300/compiler: Add support for inline literals

On R500 chips, shader instructions can take 7-bit (3-bit mantissa, 4-bit
exponent) floating point values as inputs in place of registers.
12 files changed:
src/gallium/drivers/r300/Makefile.sources
src/gallium/drivers/r300/compiler/r3xx_fragprog.c
src/gallium/drivers/r300/compiler/r500_fragprog.c
src/gallium/drivers/r300/compiler/r500_fragprog_emit.c
src/gallium/drivers/r300/compiler/radeon_compiler.c
src/gallium/drivers/r300/compiler/radeon_compiler.h
src/gallium/drivers/r300/compiler/radeon_dataflow.h
src/gallium/drivers/r300/compiler/radeon_inline_literals.c [new file with mode: 0644]
src/gallium/drivers/r300/compiler/radeon_pair_translate.c
src/gallium/drivers/r300/compiler/radeon_program_constants.h
src/gallium/drivers/r300/compiler/radeon_program_pair.h
src/gallium/drivers/r300/compiler/radeon_program_print.c