diff options
author | Boris Brezillon <[email protected]> | 2019-06-13 14:56:02 +0200 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-13 10:54:18 -0700 |
commit | 749c544b84123627b9f7026bf9c02d10a7139465 (patch) | |
tree | 1ac8471650961ea6ec156b023bc3160c243fcfd8 /src/gallium/drivers/panfrost/pan_context.h | |
parent | 7566a9a58a7de86904b8ce1620d4f011d69090cd (diff) |
panfrost: Fix general purpose varying handling
When both the fragment and vertex shaders point to the same varying
location they expect to share the same varying slot.
Make sure vertex and fragment varyings pointing to the same loc have
->src_offset set to the same value.
[Alyssa: In addition a patch implement txs, this fixes GALLIUM_HUD on
Panfrost]
Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h index 6f3bca939e5..3eac8d6b5a2 100644 --- a/src/gallium/drivers/panfrost/pan_context.h +++ b/src/gallium/drivers/panfrost/pan_context.h @@ -267,8 +267,8 @@ struct panfrost_shader_state { bool writes_point_size; bool reads_point_coord; - unsigned general_varying_stride; struct mali_attr_meta varyings[PIPE_MAX_ATTRIBS]; + gl_varying_slot varyings_loc[PIPE_MAX_ATTRIBS]; unsigned sysval_count; unsigned sysval[MAX_SYSVAL_COUNT]; |