Implement (viewport) system values

Submitted by Alyssa Rosenzweig on April 3, 2019, 1:49 a.m.

Details

Reviewer None
Submitted April 3, 2019, 1:49 a.m.
Last Updated April 3, 2019, 1:50 a.m.
Revision 1

Cover Letter(s)

Revision 1
      This patch set implements the infrastructure for piping system values
through Panfrost, replacing the prior brittle system of magic uniform
offsets. This infrastructure is used to implement the vertex shader
viewport transformation, which will soon be shared with lima.

Alyssa Rosenzweig (2):
  nir: Add "viewport vector" system values
  panfrost: Implement system values

 src/compiler/nir/nir_intrinsics.py            |   5 +
 src/gallium/drivers/panfrost/meson.build      |   1 +
 .../drivers/panfrost/midgard/helpers.h        |   4 -
 .../panfrost/midgard/midgard_compile.c        | 272 +++++++++---------
 .../panfrost/midgard/midgard_compile.h        |  27 +-
 src/gallium/drivers/panfrost/pan_assemble.c   |   5 +
 src/gallium/drivers/panfrost/pan_context.c    | 103 +++----
 src/gallium/drivers/panfrost/pan_context.h    |   5 +
 8 files changed, 234 insertions(+), 188 deletions(-)
    

Revisions