/external/mesa3d/src/gallium/drivers/nvc0/ |
H A D | nvc0_draw.c | 29 struct nvc0_context *nvc0; member in struct:nvc0_render_stage 74 nvc0_draw_render_stage(struct nvc0_context *nvc0) argument 78 rs->nvc0 = nvc0; 79 rs->stage.draw = nvc0->draw;
|
H A D | nvc0_context.c | 38 struct nvc0_context *nvc0 = nvc0_context(pipe); local 39 struct nouveau_screen *screen = &nvc0->screen->base; 44 PUSH_KICK(nvc0->base.pushbuf); /* fencing handled in kick_notify */ 57 nvc0_context_unreference_resources(struct nvc0_context *nvc0) argument 61 nouveau_bufctx_del(&nvc0->bufctx_3d); 62 nouveau_bufctx_del(&nvc0->bufctx); 64 util_unreference_framebuffer_state(&nvc0->framebuffer); 66 for (i = 0; i < nvc0->num_vtxbufs; ++i) 67 pipe_resource_reference(&nvc0->vtxbuf[i].buffer, NULL); 69 pipe_resource_reference(&nvc0 87 struct nvc0_context *nvc0 = nvc0_context(pipe); local 122 struct nvc0_context *nvc0; local 209 nvc0_bufctx_fence(struct nvc0_context *nvc0, struct nouveau_bufctx *bufctx, boolean on_flush) argument [all...] |
H A D | nvc0_shader_state.c | 31 nvc0_program_update_context_state(struct nvc0_context *nvc0, argument 34 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 38 if (!nvc0->state.tls_required) 39 BCTX_REFN_bo(nvc0->bufctx_3d, TLS, flags, nvc0->screen->tls); 40 nvc0->state.tls_required |= 1 << stage; 42 if (nvc0->state.tls_required == (1 << stage)) 43 nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_TLS); 44 nvc0->state.tls_required &= ~(1 << stage); 51 PUSH_DATAh(push, nvc0 67 nvc0_program_validate(struct nvc0_context *nvc0, struct nvc0_program *prog) argument 85 nvc0_vertprog_validate(struct nvc0_context *nvc0) argument 105 nvc0_fragprog_validate(struct nvc0_context *nvc0) argument 133 nvc0_tctlprog_validate(struct nvc0_context *nvc0) argument 159 nvc0_tevlprog_validate(struct nvc0_context *nvc0) argument 183 nvc0_gmtyprog_validate(struct nvc0_context *nvc0) argument 212 nvc0_tfb_validate(struct nvc0_context *nvc0) argument [all...] |
H A D | nvc0_tex.c | 210 nvc0_validate_tic(struct nvc0_context *nvc0, int s) argument 213 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 214 struct nouveau_bo *txc = nvc0->screen->txc; 219 for (i = 0; i < nvc0->num_textures[s]; ++i) { 220 struct nv50_tic_entry *tic = nv50_tic_entry(nvc0->textures[s][i]); 222 const boolean dirty = !!(nvc0->textures_dirty[s] & (1 << i)); 232 tic->id = nvc0_screen_tic_alloc(nvc0->screen, tic); 252 nvc0->screen->tic.lock[tic->id / 32] |= 1 << (tic->id % 32); 261 BCTX_REFN(nvc0->bufctx_3d, TEX(s, i), res, RD); 263 for (; i < nvc0 278 nve4_validate_tic(struct nvc0_context *nvc0, unsigned s) argument 334 nvc0_validate_textures(struct nvc0_context *nvc0) argument 355 nvc0_validate_tsc(struct nvc0_context *nvc0, int s) argument 399 nve4_validate_tsc(struct nvc0_context *nvc0, int s) argument 442 nvc0_validate_samplers(struct nvc0_context *nvc0) argument 467 nve4_set_tex_handles(struct nvc0_context *nvc0) argument [all...] |
H A D | nvc0_push.c | 39 init_push_context(struct nvc0_context *nvc0, struct push_context *ctx) argument 43 ctx->push = nvc0->base.pushbuf; 44 ctx->translate = nvc0->vertex->translate; 46 if (likely(nvc0->vertex->num_elements < 32)) 47 ctx->need_vertex_id = nvc0->vertprog->vp.need_vertex_id; 54 if (unlikely(nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS)) { 55 ve = &nvc0->vertex->element[nvc0->vertprog->vp.edgeflag].pipe; 60 ctx->packet_vertex_limit = nvc0->vertex->vtx_per_packet_max; 65 ctx->vertex_words = nvc0 298 nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info) argument [all...] |
H A D | nvc0_query.c | 59 nvc0_query_allocate(struct nvc0_context *nvc0, struct nvc0_query *q, int size) argument 61 struct nvc0_screen *screen = nvc0->screen; 82 nvc0_query_allocate(nvc0, q, 0); 100 struct nvc0_context *nvc0 = nvc0_context(pipe); local 138 if (!nvc0_query_allocate(nvc0, q, space)) { 172 nvc0_query_rotate(struct nvc0_context *nvc0, struct nvc0_query *q) argument 177 nvc0_query_allocate(nvc0, q, NVC0_QUERY_ALLOC_SPACE); 183 struct nvc0_context *nvc0 = nvc0_context(pipe); local 184 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 192 nvc0_query_rotate(nvc0, 255 struct nvc0_context *nvc0 = nvc0_context(pipe); local 338 struct nvc0_context *nvc0 = nvc0_context(pipe); local 430 struct nvc0_context *nvc0 = nvc0_context(pipe); local 514 nvc0_init_query_functions(struct nvc0_context *nvc0) argument [all...] |
H A D | nvc0_state_validate.c | 7 nvc0_validate_zcull(struct nvc0_context *nvc0) argument 9 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 10 struct pipe_framebuffer_state *fb = &nvc0->framebuffer; 56 nvc0_validate_fb(struct nvc0_context *nvc0) argument 58 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 59 struct pipe_framebuffer_state *fb = &nvc0->framebuffer; 64 nouveau_bufctx_reset(nvc0->bufctx_3d, NVC0_BIND_FB); 120 BCTX_REFN(nvc0->bufctx_3d, FB, res, WR); 151 BCTX_REFN(nvc0->bufctx_3d, FB, &mt->base, WR); 164 nvc0_validate_blend_colour(struct nvc0_context *nvc0) argument 176 nvc0_validate_stencil_ref(struct nvc0_context *nvc0) argument 186 nvc0_validate_stipple(struct nvc0_context *nvc0) argument 197 nvc0_validate_scissor(struct nvc0_context *nvc0) argument 218 nvc0_validate_viewport(struct nvc0_context *nvc0) argument 253 nvc0_upload_uclip_planes(struct nvc0_context *nvc0, unsigned s) argument 268 nvc0_check_program_ucps(struct nvc0_context *nvc0, struct nvc0_program *vp, uint8_t mask) argument 288 nvc0_validate_clip(struct nvc0_context *nvc0) argument 328 nvc0_validate_blend(struct nvc0_context *nvc0) argument 337 nvc0_validate_zsa(struct nvc0_context *nvc0) argument 346 nvc0_validate_rasterizer(struct nvc0_context *nvc0) argument 355 nvc0_constbufs_validate(struct nvc0_context *nvc0) argument 410 nvc0_validate_sample_mask(struct nvc0_context *nvc0) argument 432 nvc0_validate_derived_1(struct nvc0_context *nvc0) argument 520 nvc0_state_validate(struct nvc0_context *nvc0, uint32_t mask, unsigned words) argument [all...] |
H A D | nvc0_transfer.c | 17 nvc0_m2mf_transfer_rect(struct nvc0_context *nvc0, argument 22 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 23 struct nouveau_bufctx *bctx = nvc0->bufctx; 112 nve4_m2mf_transfer_rect(struct nvc0_context *nvc0, argument 117 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 118 struct nouveau_bufctx *bctx = nvc0->bufctx; 181 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); local 186 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); 187 nouveau_pushbuf_bufctx(push, nvc0->bufctx); 218 nouveau_bufctx_reset(nvc0 226 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); local 336 struct nvc0_context *nvc0 = nvc0_context(pctx); local 411 struct nvc0_context *nvc0 = nvc0_context(pctx); local 438 struct nvc0_context *nvc0 = nvc0_context(pctx); local 502 nvc0_init_transfer_functions(struct nvc0_context *nvc0) argument [all...] |
H A D | nvc0_program.c | 649 nvc0_program_upload_code(struct nvc0_context *nvc0, struct nvc0_program *prog) argument 651 struct nvc0_screen *screen = nvc0->screen; 703 nvc0->base.push_data(&nvc0->base, screen->text, prog->code_base, 705 nvc0->base.push_data(&nvc0->base, screen->text, 709 nvc0->base.push_data(&nvc0->base, 713 BEGIN_NVC0(nvc0->base.pushbuf, NVC0_3D(MEM_BARRIER), 1); 714 PUSH_DATA (nvc0 721 nvc0_program_library_upload(struct nvc0_context *nvc0) argument 747 nvc0_program_destroy(struct nvc0_context *nvc0, struct nvc0_program *prog) argument [all...] |
H A D | nvc0_vbo.c | 166 nvc0_set_constant_vertex_attrib(struct nvc0_context *nvc0, const unsigned a) argument 168 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 169 struct pipe_vertex_element *ve = &nvc0->vertex->element[a].pipe; 170 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; 199 nvc0_user_vbuf_range(struct nvc0_context *nvc0, int vbi, argument 202 if (unlikely(nvc0->vertex->instance_bufs & (1 << vbi))) { 203 const uint32_t div = nvc0->vertex->min_instance_div[vbi]; 204 *base = nvc0->instance_off * nvc0->vtxbuf[vbi].stride; 205 *size = (nvc0 217 nvc0_release_user_vbufs(struct nvc0_context *nvc0) argument 226 nvc0_update_user_vbufs(struct nvc0_context *nvc0) argument 269 nvc0_update_user_vbufs_shared(struct nvc0_context *nvc0) argument 307 nvc0_validate_vertex_buffers(struct nvc0_context *nvc0) argument 370 nvc0_validate_vertex_buffers_shared(struct nvc0_context *nvc0) argument 409 nvc0_vertex_arrays_validate(struct nvc0_context *nvc0) argument 504 nvc0_idxbuf_validate(struct nvc0_context *nvc0) argument 560 nvc0_draw_arrays(struct nvc0_context *nvc0, unsigned mode, unsigned start, unsigned count, unsigned instance_count) argument 686 nvc0_draw_elements(struct nvc0_context *nvc0, boolean shorten, unsigned mode, unsigned start, unsigned count, unsigned instance_count, int32_t index_bias) argument 751 nvc0_draw_stream_output(struct nvc0_context *nvc0, const struct pipe_draw_info *info) argument 787 struct nvc0_context *nvc0 = nvc0_context(pipe); local [all...] |
H A D | nvc0_vbo_translate.c | 40 nvc0_push_context_init(struct nvc0_context *nvc0, struct push_context *ctx) argument 42 ctx->push = nvc0->base.pushbuf; 44 ctx->translate = nvc0->vertex->translate; 45 ctx->vertex_size = nvc0->vertex->size; 48 nvc0->vertprog->vp.need_vertex_id && (nvc0->vertex->num_elements < 32); 51 ctx->edgeflag.enabled = nvc0->vertprog->vp.edgeflag < PIPE_MAX_ATTRIBS; 59 nvc0_vertex_configure_translate(struct nvc0_context *nvc0, int32_t index_bias) argument 61 struct translate *translate = nvc0->vertex->translate; 64 for (i = 0; i < nvc0 82 nvc0_push_map_idxbuf(struct push_context *ctx, struct nvc0_context *nvc0) argument 94 nvc0_push_map_edgeflag(struct push_context *ctx, struct nvc0_context *nvc0, int32_t index_bias) argument 181 nvc0_push_setup_vertex_array(struct nvc0_context *nvc0, const unsigned count) argument 430 nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info) argument 565 nvc0_push_upload_vertex_ids(struct push_context *ctx, struct nvc0_context *nvc0, const struct pipe_draw_info *info) argument [all...] |
H A D | nvc0_state.c | 194 struct nvc0_context *nvc0 = nvc0_context(pipe); local 196 nvc0->blend = hwcso; 197 nvc0->dirty |= NVC0_NEW_BLEND; 322 struct nvc0_context *nvc0 = nvc0_context(pipe); local 324 nvc0->rast = hwcso; 325 nvc0->dirty |= NVC0_NEW_RASTERIZER; 393 struct nvc0_context *nvc0 = nvc0_context(pipe); local 395 nvc0->zsa = hwcso; 396 nvc0->dirty |= NVC0_NEW_ZSA; 445 nvc0_stage_sampler_states_bind(struct nvc0_context *nvc0, in argument 504 nvc0_stage_set_sampler_views(struct nvc0_context *nvc0, int s, unsigned nr, struct pipe_sampler_view **views) argument 608 struct nvc0_context *nvc0 = nvc0_context(pipe); local 624 struct nvc0_context *nvc0 = nvc0_context(pipe); local 640 struct nvc0_context *nvc0 = nvc0_context(pipe); local 650 struct nvc0_context *nvc0 = nvc0_context(pipe); local 688 struct nvc0_context *nvc0 = nvc0_context(pipe); local 698 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 729 struct nvc0_context *nvc0 = nvc0_context(pipe); local 753 struct nvc0_context *nvc0 = nvc0_context(pipe); local 763 struct nvc0_context *nvc0 = nvc0_context(pipe); local 773 struct nvc0_context *nvc0 = nvc0_context(pipe); local 784 struct nvc0_context *nvc0 = nvc0_context(pipe); local 840 struct nvc0_context *nvc0 = nvc0_context(pipe); local 864 struct nvc0_context *nvc0 = nvc0_context(pipe); local 912 struct nvc0_context *nvc0 = nvc0_context(pipe); local 943 nvc0_init_state_functions(struct nvc0_context *nvc0) argument [all...] |
H A D | nvc0_surface.c | 206 struct nvc0_context *nvc0 = nvc0_context(pipe); local 238 nvc0->m2mf_copy_rect(nvc0, &drect, &srect, nx, ny); 256 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); 257 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(dst), WR); 258 nouveau_pushbuf_bufctx(nvc0->base.pushbuf, nvc0->bufctx); 259 nouveau_pushbuf_validate(nvc0->base.pushbuf); 262 ret = nvc0_2d_texture_do_copy(nvc0->base.pushbuf, 271 nouveau_bufctx_reset(nvc0 281 struct nvc0_context *nvc0 = nvc0_context(pipe); local 351 struct nvc0_context *nvc0 = nvc0_context(pipe); local 404 struct nvc0_context *nvc0 = nvc0_context(pipe); local 736 nvc0_blit_set_dst(struct nvc0_context *nvc0, struct pipe_resource *res, unsigned level, unsigned layer) argument 777 nvc0_blit_set_src(struct nvc0_context *nvc0, struct pipe_resource *res, unsigned level, unsigned layer, const boolean filter) argument 852 nvc0_blitctx_pre_blit(struct nvc0_blitctx *blit, struct nvc0_context *nvc0) argument 904 nvc0_blitctx_post_blit(struct nvc0_context *nvc0, struct nvc0_blitctx *blit) argument 952 struct nvc0_context *nvc0 = nvc0_context(pipe); local 1074 nvc0_init_surface_functions(struct nvc0_context *nvc0) argument [all...] |
/external/libdrm/nouveau/ |
H A D | abi16.c | 62 struct nvc0_fifo *nvc0 = obj->data; local 70 nvc0->base.channel = req.channel; 71 nvc0->base.pushbuf = req.pushbuf_domains; 72 nvc0->notify = req.notifier_handle; 73 nvc0->base.object->handle = req.channel; 74 nvc0->base.object->length = sizeof(*nvc0); 165 bo->config.nvc0.memtype = (info->tile_flags & 0xff00) >> 8; 166 bo->config.nvc0.tile_mode = info->tile_mode; 206 info->tile_flags = (config->nvc0 [all...] |
H A D | nouveau.h | 113 } nvc0; member in union:nouveau_bo_config
|