mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
r600g: fix evergreen interpolation setup
interp data is stored in gpr0 so first interp overwrote it and subsequent ones got wrong values reserve register 0 so it's not used for attribs. alternative is to interpolate attrib0 last (reverse, as r600c does)
This commit is contained in:
parent
b2c0ef8b51
commit
84457701b0
1 changed files with 3 additions and 0 deletions
|
|
@ -529,6 +529,9 @@ int r600_shader_from_tgsi(const struct tgsi_token *tokens, struct r600_shader *s
|
|||
if (ctx.type == TGSI_PROCESSOR_VERTEX) {
|
||||
ctx.file_offset[TGSI_FILE_INPUT] = 1;
|
||||
}
|
||||
if (ctx.type == TGSI_PROCESSOR_FRAGMENT && ctx.bc->chiprev == 2) {
|
||||
ctx.file_offset[TGSI_FILE_INPUT] = 1;
|
||||
}
|
||||
ctx.file_offset[TGSI_FILE_OUTPUT] = ctx.file_offset[TGSI_FILE_INPUT] +
|
||||
ctx.info.file_count[TGSI_FILE_INPUT];
|
||||
ctx.file_offset[TGSI_FILE_TEMPORARY] = ctx.file_offset[TGSI_FILE_OUTPUT] +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue