diff options
author | Michal Krol <michal@vmware.com> | 2010-02-03 15:28:50 +0100 |
---|---|---|
committer | Michal Krol <michal@vmware.com> | 2010-02-09 15:29:42 +0100 |
commit | 33a9fb35dd4c74945840ce1e1b496c43ecfc92de (patch) | |
tree | 0f374404e75e6466f64643c74c90cc63c3bc07f8 /src/gallium/auxiliary/tgsi/tgsi_ureg.h | |
parent | 6f6d740c851aa8bedc7c51dbd5db14de338787f1 (diff) |
tgsi: Add ureg_DECL_fs_input_cyl().
Allows one to declare fragment shader inputs with cylindrical wrap info.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ureg.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h index 6be66d0694..0130a77aad 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h @@ -150,10 +150,24 @@ ureg_property_fs_coord_pixel_center(struct ureg_program *ureg, */ struct ureg_src -ureg_DECL_fs_input( struct ureg_program *, - unsigned semantic_name, - unsigned semantic_index, - unsigned interp_mode ); +ureg_DECL_fs_input_cyl(struct ureg_program *, + unsigned semantic_name, + unsigned semantic_index, + unsigned interp_mode, + unsigned cylindrical_wrap); + +static INLINE struct ureg_src +ureg_DECL_fs_input(struct ureg_program *ureg, + unsigned semantic_name, + unsigned semantic_index, + unsigned interp_mode) +{ + return ureg_DECL_fs_input_cyl(ureg, + semantic_name, + semantic_index, + interp_mode, + 0); +} struct ureg_src ureg_DECL_vs_input( struct ureg_program *, |