diff options
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_exa_tgsi.c')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_exa_tgsi.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c index 04d8977a4c..d561715fde 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c +++ b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c @@ -17,14 +17,8 @@ #include "cso_cache/cso_context.h" #include "cso_cache/cso_hash.h" -struct xorg_shaders { - struct exa_context *exa; - - struct cso_hash *vs_hash; - struct cso_hash *fs_hash; -}; - -/* SAMP[0] = dst +/* Fragment shader: + * SAMP[0] = dst * SAMP[1] = src * SAMP[2] = mask * IN[0] = pos dst @@ -33,6 +27,13 @@ struct xorg_shaders { * CONST[0] = (0, 0, 0, 1) */ +struct xorg_shaders { + struct exa_context *exa; + + struct cso_hash *vs_hash; + struct cso_hash *fs_hash; +}; + static const char over_op[] = "SUB TEMP[3], CONST[0].wwww, TEMP[1].wwww\n" "MUL TEMP[3], TEMP[0], TEMP[3]\n" |