summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_batch.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-04-30 10:07:02 -0700
committerRob Clark <[email protected]>2019-05-02 11:19:22 -0700
commit6fa8a6d60f0bbc112870dedbc7e9958f07a85d09 (patch)
tree31cc6d9cdff5c8e027468eeb68f050b0883ae985 /src/gallium/drivers/freedreno/freedreno_batch.h
parent650246523b622341ce47909ba0e45d2b170dec15 (diff)
freedreno/a6xx: KHR_blend_equation_advanced support
Wire up support to sample from the fb (and force GMEM rendering when we have fb reads). The existing GLSL IR lowering for blend_equation_advanced does the rest. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_batch.h')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_batch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_batch.h b/src/gallium/drivers/freedreno/freedreno_batch.h
index e771ad6c0bd..d38bd3f8b22 100644
--- a/src/gallium/drivers/freedreno/freedreno_batch.h
+++ b/src/gallium/drivers/freedreno/freedreno_batch.h
@@ -122,6 +122,7 @@ struct fd_batch {
FD_GMEM_BLEND_ENABLED = 0x10,
FD_GMEM_LOGICOP_ENABLED = 0x20,
+ FD_GMEM_FB_READ = 0x40,
} gmem_reason;
unsigned num_draws; /* number of draws in current batch */
unsigned num_vertices; /* number of vertices in current batch */
@@ -137,6 +138,9 @@ struct fd_batch {
*/
struct util_dynarray draw_patches;
+ /* texture state that needs patching for fb_read: */
+ struct util_dynarray fb_read_patches;
+
/* Keep track of writes to RB_RENDER_CONTROL which need to be patched
* once we know whether or not to use GMEM, and GMEM tile pitch.
*