broadcom/compiler: add a definition for the unifa skip distance

We will be using this distance to setup another optimization in a
follow-up patch.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>

x# Please enter the commit message for your changes. Lines starting

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10100>
This commit is contained in:
Iago Toral Quiroga
2021-04-08 09:02:16 +02:00
committed by Marge Bot
parent a45ab46563
commit 4b244dc64f
2 changed files with 18 additions and 2 deletions

View File

@@ -61,6 +61,13 @@
*/
#define MAX_TMU_QUEUE_SIZE 8
/**
* Maximum offset distance in bytes between two consecutive constant UBO loads
* for the same UBO where we would favor updating the unifa address by emitting
* dummy ldunifa instructions to avoid writing the unifa register.
*/
#define MAX_UNIFA_SKIP_DISTANCE 16
struct nir_builder;
struct v3d_fs_inputs {