v3d: implement tile buffer color read intrinsic
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 3 Jul 2019 07:30:43 +0000 (09:30 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 12 Jul 2019 07:16:38 +0000 (09:16 +0200)
commit47d7c80dc788a7354a706d3fe0862a1c21ecb566
tree5b68722cc217a9755aa6fc6d297cdda7f876d07f
parentb0eec9e27d753af11f82d64bd329234a3291339c
v3d: implement tile buffer color read intrinsic

We will be emitting this intrinsic to signal TLB color loads when we implement
OpenGL logic operations, where we need to blend the fragment shader color
output with the existing color in the render target.

Per-sample TLB reads are not supported yet.

v2: fix the offset into the color_reads array (Eric).

Reviewed-by: Eric Anholt <eric@anholt.net>
src/broadcom/compiler/nir_to_vir.c