diff options
author | Erik Faye-Lund <[email protected]> | 2019-10-02 16:19:08 -0400 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-17 10:41:36 +0200 |
commit | eb3047c094abfa03e071453d7c373e9c2c574370 (patch) | |
tree | 2be3fea726a40dc3334160ce8b72e83eb66439f0 /src/broadcom/compiler/vir.c | |
parent | 28543f1640d459404413c244740291fe68a75a5c (diff) |
nir: support lowering clipdist to arrays
This allows us to make sure clipdist is emitted as a scalar array rather
than two vec4s. This matches SPIR-V semantics, and will be useful for
Zink.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/broadcom/compiler/vir.c')
-rw-r--r-- | src/broadcom/compiler/vir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 5d929c2412a..afba863b0ec 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -825,7 +825,7 @@ v3d_nir_lower_vs_late(struct v3d_compile *c) if (c->key->ucp_enables) { NIR_PASS_V(c->s, nir_lower_clip_vs, c->key->ucp_enables, - false); + false, false); NIR_PASS_V(c->s, nir_lower_io_to_scalar, nir_var_shader_out); } @@ -850,7 +850,8 @@ v3d_nir_lower_fs_late(struct v3d_compile *c) } if (c->key->ucp_enables) - NIR_PASS_V(c->s, nir_lower_clip_fs, c->key->ucp_enables); + NIR_PASS_V(c->s, nir_lower_clip_fs, c->key->ucp_enables, + false); /* Note: FS input scalarizing must happen after * nir_lower_two_sided_color, which only handles a vec4 at a time. |