v3d: Add and use a define for the number of channels in a QPU invocation

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 12 April 2019 22:58 EDT

A shader invocation always executes 16 channels together, so we often end up multiplying things by this magic 16 number. Give it a name.

89b7df552ba v3d: Add and use a define for the number of channels in a QPU invocation.
src/broadcom/common/v3d_limits.h | 5 +++++
src/broadcom/compiler/vir.c | 2 +-
src/broadcom/compiler/vir_register_allocate.c | 5 +++--
3 files changed, 9 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share