diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2017-06-24 00:44:35 -0400 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2018-01-07 11:40:35 -0500 |
commit | 23a6e8d8ff5effa7b88bd77c3bf396879a2ece0c (patch) | |
tree | da4107ad5ff1078b4468e86fcdc3854f08787926 /src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c | |
parent | 8eb1214755366fc34ed15a7e3dec48d4f0d65f10 (diff) |
nvc0: add bindless image support for kepler
A part of the driver constbuf area is allocated for bindless images. Any
update requires uploading to all driver constbufs. This also extends the
driver constbuf to 64KB, up from 2KB.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c index 4cd3712203b..66de6d9e2fa 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c @@ -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) { |