aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom/common/v3d_limits.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2019-10-29 08:32:44 +0100
committerIago Toral <[email protected]>2019-10-31 08:46:35 +0000
commite7e501efceca73b92727e9d295eda63d21e76afe (patch)
tree90e4c392cc3124820d0ec639bba3c53e9e583bac /src/broadcom/common/v3d_limits.h
parentd688e4166ca9c49a980a78ce91846fd7072df8fd (diff)
v3d: rename vertex shader key (num)_fs_inputs fields
Until now this made sense because we always paired vertex shaders with fragment shaders, but as soon as we implement geometry and tessellation shaders that will no longer be the case, so rename this to (num_)used_outputs. v2: Use 'used_outputs' instead of ns_outputs, which is more explicit (Eric). Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/broadcom/common/v3d_limits.h')
-rw-r--r--src/broadcom/common/v3d_limits.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/broadcom/common/v3d_limits.h b/src/broadcom/common/v3d_limits.h
index 77684762203..d65edddab74 100644
--- a/src/broadcom/common/v3d_limits.h
+++ b/src/broadcom/common/v3d_limits.h
@@ -31,6 +31,7 @@
#define V3D_MAX_FS_INPUTS 64
#define V3D_MAX_VS_INPUTS 64
+#define V3D_MAX_ANY_STAGE_INPUTS MAX2(V3D_MAX_VS_INPUTS, V3D_MAX_FS_INPUTS)
/* Not specifically a hardware limit, just coordination between compiler and
* driver.