freedreno/a6xx: fix hangs with newer sqe fw
[mesa.git] / src / gallium / drivers / nouveau / nouveau_buffer.h
index 7e6a6cc804b24be4fa1aabd67f4f6d6473f407d6..3a33fae9ce2fa3fd668d52f9010945aca4fef60a 100644 (file)
@@ -41,6 +41,8 @@ struct nv04_resource {
    uint8_t status;
    uint8_t domain;
 
+   uint16_t cb_bindings[6]; /* per-shader per-slot bindings */
+
    struct nouveau_fence *fence;
    struct nouveau_fence *fence_wr;
 
@@ -97,6 +99,10 @@ bool
 nouveau_user_buffer_upload(struct nouveau_context *, struct nv04_resource *,
                            unsigned base, unsigned size);
 
+void
+nouveau_buffer_invalidate(struct pipe_context *pipe,
+                          struct pipe_resource *resource);
+
 /* Copy data to a scratch buffer and return address & bo the data resides in.
  * Returns 0 on failure.
  */