/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
nvc0_context.c | 26 #include "nvc0/nvc0_context.h" 27 #include "nvc0/nvc0_screen.h" 28 #include "nvc0/nvc0_resource.h" 35 struct nvc0_context *nvc0 = nvc0_context(pipe); local 36 struct nouveau_screen *screen = &nvc0->screen->base; 41 PUSH_KICK(nvc0->base.pushbuf); /* fencing handled in kick_notify */ 43 nouveau_context_update_frame_stats(&nvc0->base); 58 struct nvc0_context *nvc0 = nvc0_context(pipe); local 59 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 63 for (i = 0; i < nvc0->num_vtxbufs; ++i) 194 struct nvc0_context *nvc0 = nvc0_context(pipe); local 233 struct nvc0_context *nvc0 = nvc0_context(&ctx->pipe); local 358 struct nvc0_context *nvc0; local [all...] |
nvc0_state_validate.c | 6 #include "nvc0/nvc0_context.h" 10 nvc0_validate_zcull(struct nvc0_context *nvc0) 12 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 13 struct pipe_framebuffer_state *fb = &nvc0->framebuffer; 75 nvc0_validate_fb(struct nvc0_context *nvc0) 77 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 78 struct pipe_framebuffer_state *fb = &nvc0->framebuffer; 79 struct nvc0_screen *screen = nvc0->screen; 85 nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_3D_FB); 148 BCTX_REFN(nvc0->bufctx_3d, 3D_FB, res, WR) [all...] |
nvc0_shader_state.c | 28 #include "nvc0/nvc0_context.h" 29 #include "nvc0/nvc0_query_hw.h" 31 #include "nvc0/nvc0_compute.xml.h" 34 nvc0_program_update_context_state(struct nvc0_context *nvc0, 38 const uint32_t flags = NV_VRAM_DOMAIN(&nvc0->screen->base) | NOUVEAU_BO_RDWR; 39 if (!nvc0->state.tls_required) 40 BCTX_REFN_bo(nvc0->bufctx_3d, 3D_TLS, flags, nvc0->screen->tls); 41 nvc0->state.tls_required |= 1 << stage; 43 if (nvc0->state.tls_required == (1 << stage) [all...] |
nvc0_vbo.c | 31 #include "nvc0/nvc0_context.h" 32 #include "nvc0/nvc0_query_hw.h" 33 #include "nvc0/nvc0_resource.h" 35 #include "nvc0/nvc0_3d.xml.h" 171 nvc0_set_constant_vertex_attrib(struct nvc0_context *nvc0, const unsigned a) 173 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 174 struct pipe_vertex_element *ve = &nvc0->vertex->element[a].pipe; 175 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; 204 nvc0_user_vbuf_range(struct nvc0_context *nvc0, int vbi, 207 if (unlikely(nvc0->vertex->instance_bufs & (1 << vbi))) 938 struct nvc0_context *nvc0 = nvc0_context(pipe); local [all...] |
nvc0_compute.c | 25 #include "nvc0/nvc0_context.h" 27 #include "nvc0/nvc0_compute.xml.h" 144 nvc0_compute_validate_samplers(struct nvc0_context *nvc0) 146 bool need_flush = nvc0_validate_tsc(nvc0, 5); 148 BEGIN_NVC0(nvc0->base.pushbuf, NVC0_CP(TSC_FLUSH), 1); 149 PUSH_DATA (nvc0->base.pushbuf, 0); 154 nvc0->samplers_dirty[s] = ~0; 155 nvc0->dirty_3d |= NVC0_NEW_3D_SAMPLERS; 159 nvc0_compute_validate_textures(struct nvc0_context *nvc0) 161 bool need_flush = nvc0_validate_tic(nvc0, 5) 426 struct nvc0_context *nvc0 = nvc0_context(pipe); local [all...] |
nvc0_state.c | 31 #include "nvc0/nvc0_stateobj.h" 32 #include "nvc0/nvc0_context.h" 33 #include "nvc0/nvc0_query_hw.h" 35 #include "nvc0/nvc0_3d.xml.h" 196 struct nvc0_context *nvc0 = nvc0_context(pipe); local 198 nvc0->blend = hwcso; 199 nvc0->dirty_3d |= NVC0_NEW_3D_BLEND; 327 struct nvc0_context *nvc0 = nvc0_context(pipe); local 329 nvc0->rast = hwcso; 330 nvc0->dirty_3d |= NVC0_NEW_3D_RASTERIZER 405 struct nvc0_context *nvc0 = nvc0_context(pipe); local 611 struct nvc0_context *nvc0 = nvc0_context(pipe); local 627 struct nvc0_context *nvc0 = nvc0_context(pipe); local 643 struct nvc0_context *nvc0 = nvc0_context(pipe); local 659 struct nvc0_context *nvc0 = nvc0_context(pipe); local 675 struct nvc0_context *nvc0 = nvc0_context(pipe); local 708 struct nvc0_context *nvc0 = nvc0_context(pipe); local 718 struct nvc0_context *nvc0 = nvc0_context(pipe); local 775 struct nvc0_context *nvc0 = nvc0_context(pipe); local 785 struct nvc0_context *nvc0 = nvc0_context(pipe); local 795 struct nvc0_context *nvc0 = nvc0_context(pipe); local 805 struct nvc0_context *nvc0 = nvc0_context(pipe); local 814 struct nvc0_context *nvc0 = nvc0_context(pipe); local 826 struct nvc0_context *nvc0 = nvc0_context(pipe); local 839 struct nvc0_context *nvc0 = nvc0_context(pipe); local 851 struct nvc0_context *nvc0 = nvc0_context(pipe); local 870 struct nvc0_context *nvc0 = nvc0_context(pipe); local 890 struct nvc0_context *nvc0 = nvc0_context(pipe); local 905 struct nvc0_context *nvc0 = nvc0_context(pipe); local 917 struct nvc0_context *nvc0 = nvc0_context(pipe); local 960 struct nvc0_context *nvc0 = nvc0_context(pipe); local 984 struct nvc0_context *nvc0 = nvc0_context(pipe); local 1055 struct nvc0_context *nvc0 = nvc0_context(pipe); local 1326 struct nvc0_context *nvc0 = nvc0_context(pipe); local [all...] |
nve4_compute.c | 25 #include "nvc0/nvc0_context.h" 26 #include "nvc0/nve4_compute.h" 191 gm107_compute_validate_surfaces(struct nvc0_context *nvc0, 195 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 196 struct nvc0_screen *screen = nvc0->screen; 197 struct nouveau_bo *txc = nvc0->screen->txc; 202 tic = nv50_tic_entry(nvc0->images_tic[s][slot]); 205 nvc0_update_tic(nvc0, tic, res); 208 tic->id = nvc0_screen_tic_alloc(nvc0->screen, tic); 229 nvc0->screen->tic.lock[tic->id / 32] |= 1 << (tic->id % 32) 606 struct nvc0_context *nvc0 = nvc0_context(pipe); local [all...] |
nvc0_surface.c | 34 #include "nvc0/nvc0_context.h" 35 #include "nvc0/nvc0_resource.h" 204 struct nvc0_context *nvc0 = nvc0_context(pipe); local 210 nouveau_copy_buffer(&nvc0->base, 213 NOUVEAU_DRV_STAT(&nvc0->screen->base, buf_copy_bytes, src_box->width); 216 NOUVEAU_DRV_STAT(&nvc0->screen->base, tex_copy_count, 1); 242 nvc0->m2mf_copy_rect(nvc0, &drect, &srect, nx, ny); 260 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); 261 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(dst), WR) 286 struct nvc0_context *nvc0 = nvc0_context(pipe); local 368 struct nvc0_context *nvc0 = nvc0_context(pipe); local 420 struct nvc0_context *nvc0 = nvc0_context(pipe); local 470 struct nvc0_context *nvc0 = nvc0_context(pipe); local 497 struct nvc0_context *nvc0 = nvc0_context(pipe); local 628 struct nvc0_context *nvc0 = nvc0_context(pipe); local 695 struct nvc0_context *nvc0 = nvc0_context(pipe); local 782 struct nvc0_context *nvc0; member in struct:nvc0_blitctx 935 struct nvc0_context *nvc0 = ctx->nvc0; local 965 struct nvc0_context *nvc0 = ctx->nvc0; local 1056 struct nvc0_context *nvc0 = ctx->nvc0; local 1132 struct nvc0_context *nvc0 = blit->nvc0; local 1569 struct nvc0_context *nvc0 = nvc0_context(pipe); local [all...] |
nvc0_tex.c | 23 #include "nvc0/nvc0_context.h" 24 #include "nvc0/nvc0_resource.h" 25 #include "nvc0/gm107_texture.xml.h" 26 #include "nvc0/nvc0_compute.xml.h" 453 nvc0_update_tic(struct nvc0_context *nvc0, struct nv50_tic_entry *tic, 464 nvc0_screen_tic_unlock(nvc0->screen, tic); 472 nvc0_validate_tic(struct nvc0_context *nvc0, int s) 475 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 480 for (i = 0; i < nvc0->num_textures[s]; ++i) { 481 struct nv50_tic_entry *tic = nv50_tic_entry(nvc0->textures[s][i]) [all...] |
nvc0_query_sw.c | 24 #include "nvc0/nvc0_context.h" 68 nvc0_sw_destroy_query(struct nvc0_context *nvc0, struct nvc0_query *q) 75 nvc0_sw_begin_query(struct nvc0_context *nvc0, struct nvc0_query *q) 81 sq->value = nvc0->screen->base.stats.v[q->index]; 90 nvc0_sw_end_query(struct nvc0_context *nvc0, struct nvc0_query *q) 94 sq->value = nvc0->screen->base.stats.v[q->index] - sq->value; 99 nvc0_sw_get_query_result(struct nvc0_context *nvc0, struct nvc0_query *q,
|
nvc0_query_hw.c | 26 #include "nvc0/nvc0_context.h" 27 #include "nvc0/nvc0_query_hw.h" 28 #include "nvc0/nvc0_query_hw_metric.h" 29 #include "nvc0/nvc0_query_hw_sm.h" 39 nvc0_hw_query_allocate(struct nvc0_context *nvc0, struct nvc0_query *q, 43 struct nvc0_screen *screen = nvc0->screen; 65 nvc0_hw_query_allocate(nvc0, q, 0); 91 nvc0_hw_query_rotate(struct nvc0_context *nvc0, struct nvc0_query *q) 98 nvc0_hw_query_allocate(nvc0, q, NVC0_HW_QUERY_ALLOC_SPACE); 116 nvc0_hw_destroy_query(struct nvc0_context *nvc0, struct nvc0_query *q [all...] |
nvc0_query.c | 27 #include "nvc0/nvc0_context.h" 28 #include "nvc0/nvc0_query.h" 29 #include "nvc0/nvc0_query_sw.h" 30 #include "nvc0/nvc0_query_hw.h" 31 #include "nvc0/nvc0_query_hw_metric.h" 32 #include "nvc0/nvc0_query_hw_sm.h" 37 struct nvc0_context *nvc0 = nvc0_context(pipe); local 40 q = nvc0_sw_create_query(nvc0, type, index); 42 q = nvc0_hw_create_query(nvc0, type, index); 100 struct nvc0_context *nvc0 = nvc0_context(pipe) local [all...] |
nvc0_vbo_translate.c | 8 #include "nvc0/nvc0_context.h" 9 #include "nvc0/nvc0_resource.h" 11 #include "nvc0/nvc0_3d.xml.h" 42 nvc0_push_context_init(struct nvc0_context *nvc0, struct push_context *ctx) 44 ctx->push = nvc0->base.pushbuf; 46 ctx->translate = nvc0->vertex->translate; 47 ctx->vertex_size = nvc0->vertex->size; 51 nvc0->vertprog->vp.need_vertex_id && (nvc0->vertex->num_elements < 32); 54 ctx->edgeflag.enabled = nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS [all...] |
nvc0_program.c | 27 #include "nvc0/nvc0_context.h" 30 #include "nvc0/nve4_compute.h" 699 nvc0_program_alloc_code(struct nvc0_context *nvc0, struct nvc0_program *prog) 701 struct nvc0_screen *screen = nvc0->screen; 743 nvc0_program_upload_code(struct nvc0_context *nvc0, struct nvc0_program *prog) 745 struct nvc0_screen *screen = nvc0->screen; 772 nvc0->base.push_data(&nvc0->base, screen->text, prog->code_base, 776 nvc0->base.push_data(&nvc0->base, screen->text, code_pos [all...] |
nvc0_transfer.c | 4 #include "nvc0/nvc0_context.h" 15 nvc0_m2mf_transfer_rect(struct nvc0_context *nvc0, 20 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 21 struct nouveau_bufctx *bctx = nvc0->bufctx; 110 nve4_m2mf_transfer_rect(struct nvc0_context *nvc0, 115 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 116 struct nouveau_bufctx *bctx = nvc0->bufctx; 179 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); local 184 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); 185 nouveau_pushbuf_bufctx(push, nvc0->bufctx) 221 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); local 353 struct nvc0_context *nvc0 = nvc0_context(pctx); local 472 struct nvc0_context *nvc0 = nvc0_context(pctx); local 516 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); local [all...] |
nvc0_query.h | 17 void (*get_query_result_resource)(struct nvc0_context *nvc0,
|
nvc0_query_hw_metric.c | 23 #include "nvc0/nvc0_context.h" 24 #include "nvc0/nvc0_query_hw_metric.h" 25 #include "nvc0/nvc0_query_hw_sm.h" 441 nvc0_hw_metric_query_get_cfg(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) 444 struct nvc0_screen *screen = nvc0->screen; 461 nvc0_hw_metric_destroy_query(struct nvc0_context *nvc0, 469 hmq->queries[i]->funcs->destroy_query(nvc0, hmq->queries[i]); 474 nvc0_hw_metric_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) 481 ret = hmq->queries[i]->funcs->begin_query(nvc0, hmq->queries[i]); 489 nvc0_hw_metric_end_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq [all...] |
nvc0_query_hw_sm.c | 26 #include "nvc0/nvc0_context.h" 27 #include "nvc0/nvc0_query_hw_sm.h" 30 #include "nvc0/nve4_compute.xml.h" 31 #include "nvc0/nvc0_compute.xml.h" 600 uint32_t src_mask; /* mask for signal selection (only for NVC0:NVE4) */ [all...] |
nvc0_video_bsp.c | 23 #include "nvc0/nvc0_video.h" 71 cfg.nvc0.tile_mode = 0x10; 72 cfg.nvc0.memtype = 0xfe; 107 cfg.nvc0.tile_mode = 0x10; 108 cfg.nvc0.memtype = 0xfe;
|
nvc0_context.h | 13 #include "nvc0/nvc0_winsys.h" 14 #include "nvc0/nvc0_stateobj.h" 15 #include "nvc0/nvc0_screen.h" 16 #include "nvc0/nvc0_program.h" 17 #include "nvc0/nvc0_resource.h" 18 #include "nvc0/nvc0_query.h" 26 #include "nvc0/nvc0_3d.xml.h" 28 #include "nvc0/nvc0_m2mf.xml.h" 29 #include "nvc0/nve4_p2mf.xml.h" 30 #include "nvc0/nvc0_compute.xml.h [all...] |
nvc0_miptree.c | 28 #include "nvc0/nvc0_context.h" 29 #include "nvc0/nvc0_resource.h" 283 bo_config.nvc0.memtype = nvc0_mt_choose_storage_type(mt, compressed); 293 if (likely(bo_config.nvc0.memtype)) { 300 bo_config.nvc0.tile_mode = mt->level[0].tile_mode; 302 if (!bo_config.nvc0.memtype && (pt->usage == PIPE_USAGE_STAGING || pt->bind & PIPE_BIND_SHARED))
|
nvc0_winsys.h | 102 return bo->config.nvc0.memtype;
|
nvc0_video.c | 23 #include "nvc0/nvc0_video.h" 99 cfg.nvc0.tile_mode = 0x10; 100 cfg.nvc0.memtype = 0xfe;
|
/external/libdrm/nouveau/ |
abi16.c | 67 struct nvc0_fifo *nvc0 = obj->data; local 75 nvc0->base.channel = req.channel; 76 nvc0->base.pushbuf = req.pushbuf_domains; 77 nvc0->notify = req.notifier_handle; 78 nvc0->base.object->handle = req.channel; 79 nvc0->base.object->length = sizeof(*nvc0); 297 bo->config.nvc0.memtype = (info->tile_flags & 0xff00) >> 8; 298 bo->config.nvc0.tile_mode = info->tile_mode; 342 info->tile_flags = (config->nvc0.memtype & 0xff) << 8 [all...] |
nouveau.h | 108 } nvc0; member in union:nouveau_bo_config
|