diff options
author | Constantine Charlamov <[email protected]> | 2017-06-24 17:06:48 +0300 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-26 16:32:36 +1000 |
commit | 3d466f3e9f76c91083f0cfbb8a76148bdb0d52a3 (patch) | |
tree | eae2b922f9d966dbc36c1a8cafa751ae20a7ae09 /src/gallium/drivers/r600/r600_shader.h | |
parent | 469e2ed4730bc90b59d6cd55a0b729b38e9f99b0 (diff) |
r600g: take into account offset to system inputs at tgsi_interp_egcm()
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=100785
v2: I was too much twiddling whether to initialize nsys_inputs at the beginning of shader initialization or for allocation of system values, and by the time I decided to go with the first one, I forgot to change it back.
Signed-off-by: Constantine Kharlamov <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index cfdb0200333..9032d508383 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -49,11 +49,11 @@ struct r600_shader_io { int spi_sid; unsigned interpolate; unsigned ij_index; - unsigned interpolate_location; // TGSI_INTERPOLATE_LOC_CENTER, CENTROID, SAMPLE + unsigned interpolate_location; // TGSI_INTERPOLATE_LOC_CENTER, CENTROID, SAMPLE unsigned lds_pos; /* for evergreen */ unsigned back_color_input; unsigned write_mask; - int ring_offset; + int ring_offset; }; struct r600_shader { @@ -62,6 +62,7 @@ struct r600_shader { unsigned ninput; unsigned noutput; unsigned nlds; + unsigned nsys_inputs; struct r600_shader_io input[64]; struct r600_shader_io output[64]; boolean uses_kill; |