diff options
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index 4b27ede96dd..20829fd9fdb 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -33,7 +33,7 @@ struct r600_shader_io { int spi_sid; unsigned interpolate; unsigned ij_index; - boolean centroid; + unsigned interpolate_location; // TGSI_INTERPOLATE_LOC_CENTER, CENTROID, SAMPLE unsigned lds_pos; /* for evergreen */ unsigned back_color_input; unsigned write_mask; @@ -115,4 +115,8 @@ struct r600_pipe_shader { unsigned ps_depth_export; }; +/* return the table index 0-5 for TGSI_INTERPOLATE_LINEAR/PERSPECTIVE and + TGSI_INTERPOLATE_LOC_CENTER/SAMPLE/COUNT. Other input values return -1. */ +int eg_get_interpolator_index(unsigned interpolate, unsigned location); + #endif |