nvc0: add bindless image support for kepler
[mesa.git] / src / gallium / drivers / nouveau / nvc0 / nvc0_vbo.c
index 4cd3712203b3a3ba57e436d7c803a2cbc6bd1f6c..66de6d9e2fa62ae4c27cabc3426eed34cb08a5c6 100644 (file)
@@ -977,6 +977,11 @@ nvc0_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info)
                         resident->flags);
    }
 
+   list_for_each_entry(struct nvc0_resident, resident, &nvc0->img_head, list) {
+      nvc0_add_resident(nvc0->bufctx_3d, NVC0_BIND_3D_BINDLESS, resident->buf,
+                        resident->flags);
+   }
+
    nvc0_state_validate_3d(nvc0, ~0);
 
    if (nvc0->vertprog->vp.need_draw_parameters && !info->indirect) {