mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 18:28:12 +02:00
Added TGSI_FILE_OUTPUT case in fetch_src_file_channel().
GLSL output variables (such as vertex varyings) can be read (they're not write-only).
This commit is contained in:
parent
4ad80ad5cf
commit
6aab3e3d26
1 changed files with 8 additions and 0 deletions
|
|
@ -855,6 +855,14 @@ fetch_src_file_channel(
|
|||
chan->u[3] = mach->Addrs[index->i[3]].xyzw[swizzle].u[3];
|
||||
break;
|
||||
|
||||
case TGSI_FILE_OUTPUT:
|
||||
/* vertex varying/output vars can be read too */
|
||||
chan->u[0] = mach->Outputs[index->i[0]].xyzw[swizzle].u[0];
|
||||
chan->u[1] = mach->Outputs[index->i[1]].xyzw[swizzle].u[1];
|
||||
chan->u[2] = mach->Outputs[index->i[2]].xyzw[swizzle].u[2];
|
||||
chan->u[3] = mach->Outputs[index->i[3]].xyzw[swizzle].u[3];
|
||||
break;
|
||||
|
||||
default:
|
||||
assert( 0 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue