diff options
author | José Fonseca <[email protected]> | 2010-02-11 14:09:53 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-12 11:10:41 +0000 |
commit | ea8f7bd2e40dc69dbde079a29c169c5371244aef (patch) | |
tree | 1d81bfcdaa396fcf0be1a75e14e80aba6217e5cd /src/gallium/drivers/svga/svgadump/svga_shader.h | |
parent | d0ec18e111a1d1cbf0bbbadc2763804e6ced2181 (diff) |
svgadump: Several improvements to shader dumping.
Diffstat (limited to 'src/gallium/drivers/svga/svgadump/svga_shader.h')
-rw-r--r-- | src/gallium/drivers/svga/svgadump/svga_shader.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/src/gallium/drivers/svga/svgadump/svga_shader.h b/src/gallium/drivers/svga/svgadump/svga_shader.h index 9217af2dd99..5db64bf135b 100644 --- a/src/gallium/drivers/svga/svgadump/svga_shader.h +++ b/src/gallium/drivers/svga/svgadump/svga_shader.h @@ -98,21 +98,33 @@ struct sh_defi #define PS_TEXTURETYPE_CUBE SVGA3DSAMP_CUBE #define PS_TEXTURETYPE_VOLUME SVGA3DSAMP_VOLUME -struct ps_sampleinfo +struct sh_sampleinfo { unsigned unused:27; unsigned texture_type:4; unsigned is_reg:1; }; -struct vs_semantic +struct sh_semantic { - unsigned usage:5; - unsigned unused1:11; + unsigned usage:4; + unsigned unused1:12; unsigned usage_index:4; - unsigned unused2:12; + unsigned unused2:11; + unsigned is_reg:1; }; +#define SH_WRITEMASK_0 0x1 +#define SH_WRITEMASK_1 0x2 +#define SH_WRITEMASK_2 0x4 +#define SH_WRITEMASK_3 0x8 +#define SH_WRITEMASK_ALL 0xf + +#define SH_DSTMOD_NONE 0x0 +#define SH_DSTMOD_SATURATE 0x1 +#define SH_DSTMOD_PARTIALPRECISION 0x2 +#define SH_DSTMOD_MSAMPCENTROID 0x4 + struct sh_dstreg { unsigned number:11; @@ -136,17 +148,12 @@ struct sh_dcl { struct sh_op op; union { - struct { - struct ps_sampleinfo sampleinfo; - } ps; - struct { - struct vs_semantic semantic; - } vs; + struct sh_sampleinfo sampleinfo; + struct sh_semantic semantic; } u; struct sh_dstreg reg; }; - struct sh_srcreg { unsigned number:11; |