/external/mesa3d/src/gallium/drivers/nv30/ |
D | nv30_state_validate.c | 36 nv30_validate_fb(struct nv30_context *nv30) in nv30_validate_fb() argument 38 struct pipe_screen *pscreen = &nv30->screen->base.base; in nv30_validate_fb() 39 struct pipe_framebuffer_state *fb = &nv30->framebuffer; in nv30_validate_fb() 40 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_fb() 41 struct nouveau_object *eng3d = nv30->screen->eng3d; in nv30_validate_fb() 48 nv30->state.rt_enable = (NV30_3D_RT_ENABLE_COLOR0 << fb->nr_cbufs) - 1; in nv30_validate_fb() 49 if (nv30->state.rt_enable > 1) in nv30_validate_fb() 50 nv30->state.rt_enable |= NV30_3D_RT_ENABLE_MRT; in nv30_validate_fb() 86 if (nv30->state.rt_enable) { in nv30_validate_fb() 119 if ((nv30->state.rt_enable & NV30_3D_RT_ENABLE_COLOR0) || fb->zsbuf) { in nv30_validate_fb() [all …]
|
D | nv30_context.c | 40 struct nv30_context *nv30; in nv30_context_kick_notify() local 44 nv30 = container_of(push->user_priv, nv30, bufctx); in nv30_context_kick_notify() 45 screen = &nv30->screen->base; in nv30_context_kick_notify() 72 struct nv30_context *nv30 = nv30_context(pipe); in nv30_context_flush() local 73 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_context_flush() 76 nouveau_fence_ref(nv30->screen->base.fence.current, in nv30_context_flush() 85 struct nv30_context *nv30 = nv30_context(pipe); in nv30_context_destroy() local 87 if (nv30->draw) in nv30_context_destroy() 88 draw_destroy(nv30->draw); in nv30_context_destroy() 90 nouveau_bufctx_del(&nv30->bufctx); in nv30_context_destroy() [all …]
|
D | nv30_vbo.c | 37 nv30_emit_vtxattr(struct nv30_context *nv30, struct pipe_vertex_buffer *vb, in nv30_emit_vtxattr() argument 41 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_emit_vtxattr() 46 data = nouveau_resource_map_offset(&nv30->base, res, vb->buffer_offset + in nv30_emit_vtxattr() 81 nv30_vbuf_range(struct nv30_context *nv30, int vbi, in nv30_vbuf_range() argument 84 assert(nv30->vbo_max_index != ~0); in nv30_vbuf_range() 85 *base = nv30->vbo_min_index * nv30->vtxbuf[vbi].stride; in nv30_vbuf_range() 86 *size = (nv30->vbo_max_index - in nv30_vbuf_range() 87 nv30->vbo_min_index + 1) * nv30->vtxbuf[vbi].stride; in nv30_vbuf_range() 91 nv30_prevalidate_vbufs(struct nv30_context *nv30) in nv30_prevalidate_vbufs() argument 98 nv30->vbo_fifo = nv30->vbo_user = 0; in nv30_prevalidate_vbufs() [all …]
|
D | nv40_verttex.c | 30 nv40_verttex_validate(struct nv30_context *nv30) in nv40_verttex_validate() argument 32 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv40_verttex_validate() 33 unsigned dirty = nv30->vertprog.dirty_samplers; in nv40_verttex_validate() 37 struct nv30_sampler_view *sv = (void *)nv30->fragprog.textures[unit]; in nv40_verttex_validate() 38 struct nv30_sampler_state *ss = nv30->fragprog.samplers[unit]; in nv40_verttex_validate() 47 nv30->vertprog.dirty_samplers = 0; in nv40_verttex_validate() 54 struct nv30_context *nv30 = nv30_context(pipe); in nv40_verttex_sampler_states_bind() local 58 nv30->vertprog.samplers[i] = hwcso[i]; in nv40_verttex_sampler_states_bind() 59 nv30->vertprog.dirty_samplers |= (1 << i); in nv40_verttex_sampler_states_bind() 62 for (; i < nv30->vertprog.num_samplers; i++) { in nv40_verttex_sampler_states_bind() [all …]
|
D | nv30_fragtex.c | 34 nv30_fragtex_validate(struct nv30_context *nv30) in nv30_fragtex_validate() argument 36 struct pipe_screen *pscreen = &nv30->screen->base.base; in nv30_fragtex_validate() 37 struct nouveau_object *eng3d = nv30->screen->eng3d; in nv30_fragtex_validate() 38 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_fragtex_validate() 39 unsigned dirty = nv30->fragprog.dirty_samplers; in nv30_fragtex_validate() 43 struct nv30_sampler_view *sv = (void *)nv30->fragprog.textures[unit]; in nv30_fragtex_validate() 44 struct nv30_sampler_state *ss = nv30->fragprog.samplers[unit]; in nv30_fragtex_validate() 98 if (fmt->nv30 == NV30_3D_TEX_FORMAT_FORMAT_Z16) { in nv30_fragtex_validate() 104 if (fmt->nv30 == NV30_3D_TEX_FORMAT_FORMAT_Z24) { in nv30_fragtex_validate() 111 format |= fmt->nv30; in nv30_fragtex_validate() [all …]
|
D | nv30_draw.c | 39 struct nv30_context *nv30; member 72 struct nv30_context *nv30 = r->nv30; in nv30_render_allocate_vertices() local 78 r->buffer = pipe_buffer_create(&nv30->screen->base.base, in nv30_render_allocate_vertices() 94 char *map = pipe_buffer_map(&r->nv30->base.pipe, r->buffer, in nv30_render_map_vertices() 105 pipe_buffer_unmap(&r->nv30->base.pipe, r->transfer); in nv30_render_unmap_vertices() 121 struct nv30_context *nv30 = r->nv30; in nv30_render_draw_elements() local 122 struct nouveau_pushbuf *push = nv30->screen->base.pushbuf; in nv30_render_draw_elements() 132 if (!nv30_state_validate(nv30, FALSE)) in nv30_render_draw_elements() 164 struct nv30_context *nv30 = r->nv30; in nv30_render_draw_arrays() local 165 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_render_draw_arrays() [all …]
|
D | nv30_state.c | 119 struct nv30_context *nv30 = nv30_context(pipe); in nv30_blend_state_bind() local 121 nv30->blend = hwcso; in nv30_blend_state_bind() 122 nv30->dirty |= NV30_NEW_BLEND; in nv30_blend_state_bind() 196 struct nv30_context *nv30 = nv30_context(pipe); in nv30_rasterizer_state_bind() local 198 nv30->rast = hwcso; in nv30_rasterizer_state_bind() 199 nv30->dirty |= NV30_NEW_RASTERIZER; in nv30_rasterizer_state_bind() 266 struct nv30_context *nv30 = nv30_context(pipe); in nv30_zsa_state_bind() local 268 nv30->zsa = hwcso; in nv30_zsa_state_bind() 269 nv30->dirty |= NV30_NEW_ZSA; in nv30_zsa_state_bind() 282 struct nv30_context *nv30 = nv30_context(pipe); in nv30_set_blend_color() local [all …]
|
D | nv30_fragprog.c | 34 nv30_fragprog_upload(struct nv30_context *nv30) in nv30_fragprog_upload() argument 36 struct nouveau_context *nv = &nv30->base; in nv30_fragprog_upload() 37 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_fragprog_upload() 38 struct pipe_context *pipe = &nv30->base.pipe; in nv30_fragprog_upload() 61 nv30_fragprog_validate(struct nv30_context *nv30) in nv30_fragprog_validate() argument 63 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_fragprog_validate() 64 struct nouveau_object *eng3d = nv30->screen->eng3d; in nv30_fragprog_validate() 65 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_fragprog_validate() 70 _nvfx_fragprog_translate(nv30, fp, FALSE); in nv30_fragprog_validate() 80 if (nv30->fragprog.constbuf) { in nv30_fragprog_validate() [all …]
|
D | nv30_vertprog.c | 53 nv30_vertprog_validate(struct nv30_context *nv30) in nv30_vertprog_validate() argument 55 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_vertprog_validate() 56 struct nouveau_object *eng3d = nv30->screen->eng3d; in nv30_vertprog_validate() 57 struct nv30_vertprog *vp = nv30->vertprog.program; in nv30_vertprog_validate() 58 struct nv30_fragprog *fp = nv30->fragprog.program; in nv30_vertprog_validate() 63 if (nv30->dirty & NV30_NEW_FRAGPROG) { in nv30_vertprog_validate() 71 if (nv30->rast && nv30->rast->pipe.clip_plane_enable != vp->enabled_ucps) { in nv30_vertprog_validate() 72 vp->enabled_ucps = nv30->rast->pipe.clip_plane_enable; in nv30_vertprog_validate() 78 vp->translated = _nvfx_vertprog_translate(nv30, vp); in nv30_vertprog_validate() 80 nv30->draw_flags |= NV30_NEW_VERTPROG; in nv30_vertprog_validate() [all …]
|
D | nv30_push.c | 198 nv30_push_vbo(struct nv30_context *nv30, const struct pipe_draw_info *info) in nv30_push_vbo() argument 204 ctx.push = nv30->base.pushbuf; in nv30_push_vbo() 205 ctx.translate = nv30->vertex->translate; in nv30_push_vbo() 206 ctx.packet_vertex_limit = nv30->vertex->vtx_per_packet_max; in nv30_push_vbo() 207 ctx.vertex_words = nv30->vertex->vtx_size; in nv30_push_vbo() 209 for (i = 0; i < nv30->num_vtxbufs; ++i) { in nv30_push_vbo() 211 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[i]; in nv30_push_vbo() 214 data = nouveau_resource_map_offset(&nv30->base, res, in nv30_push_vbo() 224 if (nv30->idxbuf.buffer) in nv30_push_vbo() 225 ctx.idxbuf = nouveau_resource_map_offset(&nv30->base, in nv30_push_vbo() [all …]
|
D | nv30_transfer.c | 27 struct nv30_context *nv30, enum nv30_transfer_filter filter, \ 57 if (nv30->screen->eng3d->oclass < NV40_3D_CLASS) in nv30_transfer_blit() 71 nv30_transfer_rect_vertprog(struct nv30_context *nv30) in nv30_transfer_rect_vertprog() argument 73 struct nouveau_heap *heap = nv30->screen->vp_exec_heap; in nv30_transfer_rect_vertprog() 76 vp = nv30->blit_vp; in nv30_transfer_rect_vertprog() 78 if (nouveau_heap_alloc(heap, 2, &nv30->blit_vp, &nv30->blit_vp)) { in nv30_transfer_rect_vertprog() 84 if (nouveau_heap_alloc(heap, 2, &nv30->blit_vp, &nv30->blit_vp)) in nv30_transfer_rect_vertprog() 88 vp = nv30->blit_vp; in nv30_transfer_rect_vertprog() 90 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_transfer_rect_vertprog() 112 nv30_transfer_rect_fragprog(struct nv30_context *nv30) in nv30_transfer_rect_fragprog() argument [all …]
|
D | nv30_context.h | 142 nv30_vbo_validate(struct nv30_context *nv30); 157 nv30_vertprog_validate(struct nv30_context *nv30); 163 nv30_fragprog_validate(struct nv30_context *nv30); 169 nv30_texture_validate(struct nv30_context *nv30); 175 nv30_fragtex_validate(struct nv30_context *nv30); 181 nv40_verttex_validate(struct nv30_context *nv30); 184 nv30_push_vbo(struct nv30_context *nv30, const struct pipe_draw_info *info); 193 nv30_state_validate(struct nv30_context *nv30, boolean hwtnl); 196 nv30_state_release(struct nv30_context *nv30); 204 _nvfx_vertprog_translate(struct nv30_context *nv30, struct nv30_vertprog *vp);
|
D | nv30_clear.c | 56 struct nv30_context *nv30 = nv30_context(pipe); in nv30_clear() local 57 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_clear() 58 struct pipe_framebuffer_state *fb = &nv30->framebuffer; in nv30_clear() 61 if (!nv30_state_validate(nv30, TRUE)) in nv30_clear() 81 if (nv30->screen->eng3d->oclass < NV40_3D_CLASS) { in nv30_clear() 93 nv30_state_release(nv30); in nv30_clear() 101 struct nv30_context *nv30 = nv30_context(pipe); in nv30_clear_render_target() local 104 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_clear_render_target() 105 struct nouveau_object *eng3d = nv30->screen->eng3d; in nv30_clear_render_target() 152 nv30->dirty |= NV30_NEW_FRAMEBUFFER | NV30_NEW_SCISSOR; in nv30_clear_render_target() [all …]
|
D | nv30_query.c | 150 struct nv30_context *nv30 = nv30_context(pipe); in nv30_query_begin() local 152 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_query_begin() 156 q->qo[0] = nv30_query_object_new(nv30->screen); in nv30_query_begin() 179 struct nv30_context *nv30 = nv30_context(pipe); in nv30_query_end() local 180 struct nv30_screen *screen = nv30->screen; in nv30_query_end() 182 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_query_end() 237 struct nv30_context *nv30 = nv30_context(pipe); in nv40_query_render_condition() local 239 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv40_query_render_condition()
|
D | SConscript | 5 nv30 = env.ConvenienceLibrary( 6 target = 'nv30', 11 Export('nv30')
|
D | nvfx_vertprog.c | 39 struct nv30_context* nv30; member 117 emit_src(struct nv30_context *nv30, struct nvfx_vpc *vpc, uint32_t *hw, in emit_src() argument 201 emit_dst(struct nv30_context *nv30, struct nvfx_vpc *vpc, uint32_t *hw, in emit_dst() argument 208 if(!nv30->is_nv4x) in emit_dst() 219 if(!nv30->is_nv4x) in emit_dst() 231 if(nv30->is_nv4x) { in emit_dst() 266 if(!nv30->is_nv4x) { in emit_dst() 293 struct nv30_context *nv30 = vpc->nv30; in nvfx_vp_emit() local 316 assert(nv30->use_nv4x); in nvfx_vp_emit() 317 if(nv30->use_nv4x) in nvfx_vp_emit() [all …]
|
D | nv30_miptree.c | 129 struct nv30_context *nv30 = nv30_context(pipe); in nv30_resource_copy_region() local 143 nv30_transfer_rect(nv30, NEAREST, &src, &dst); in nv30_resource_copy_region() 150 struct nv30_context *nv30 = nv30_context(pipe); in nv30_resource_resolve() local 158 nv30_transfer_rect(nv30, BILINEAR, &src, &dst); in nv30_resource_resolve() 166 struct nv30_context *nv30 = nv30_context(pipe); in nv30_miptree_transfer_new() local 167 struct nouveau_device *dev = nv30->screen->base.device; in nv30_miptree_transfer_new() 211 nv30_transfer_rect(nv30, NEAREST, &tx->img, &tx->tmp); in nv30_miptree_transfer_new() 219 struct nv30_context *nv30 = nv30_context(pipe); in nv30_miptree_transfer_del() local 223 nv30_transfer_rect(nv30, NEAREST, &tx->tmp, &tx->img); in nv30_miptree_transfer_del() 233 struct nv30_context *nv30 = nv30_context(pipe); in nv30_miptree_transfer_map() local [all …]
|
D | Makefile | 4 LIBNAME = nv30
|
D | nv30_format.h | 17 unsigned nv30; member
|
D | nvfx_shader.h | 13 #define NVFX_VP(c) ((NV30_VP_##c) + (nv30->is_nv4x & ((NV40_VP_##c) - (NV30_VP_##c))))
|
/external/mesa3d/src/gallium/targets/vdpau-nouveau/ |
D | Makefile | 10 $(TOP)/src/gallium/drivers/nv30/libnv30.a \
|
/external/mesa3d/src/gallium/targets/dri-nouveau/ |
D | Makefile | 11 $(TOP)/src/gallium/drivers/nv30/libnv30.a \
|
/external/mesa3d/src/gallium/targets/xorg-nouveau/ |
D | Makefile | 16 $(TOP)/src/gallium/drivers/nv30/libnv30.a \
|
/external/mesa3d/src/gallium/targets/pipe-loader/ |
D | Makefile | 42 $(TOP)/src/gallium/drivers/nv30/libnv30.a \
|
/external/mesa3d/src/gallium/docs/source/ |
D | distro.rst | 31 Driver for the nVidia nv30 and nv40 families of GPUs.
|