Home
last modified time | relevance | path

Searched refs:nvc0 (Results 1 - 25 of 25) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/
H A Dnvc0_context.c27 #include "nvc0/nvc0_context.h"
28 #include "nvc0/nvc0_screen.h"
29 #include "nvc0/nvc0_resource.h"
41 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_svm_migrate() local
42 struct nouveau_screen *screen = &nvc0->screen->base; in nvc0_svm_migrate()
83 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_flush() local
84 struct nouveau_screen *screen = &nvc0->screen->base; in nvc0_flush()
89 PUSH_KICK(nvc0->base.pushbuf); /* fencing handled in kick_notify */ in nvc0_flush()
91 nouveau_context_update_frame_stats(&nvc0->base); in nvc0_flush()
106 struct nvc0_context *nvc0 in nvc0_memory_barrier() local
191 nvc0_context_unreference_resources(struct nvc0_context *nvc0) nvc0_context_unreference_resources() argument
245 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_destroy() local
297 struct nvc0_context *nvc0 = nvc0_context(&ctx->pipe); nvc0_invalidate_resource_storage() local
415 struct nvc0_context *nvc0; nvc0_create() local
575 nvc0_bufctx_fence(struct nvc0_context *nvc0, struct nouveau_bufctx *bufctx, bool on_flush) nvc0_bufctx_fence() argument
[all...]
H A Dnvc0_state_validate.c6 #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;
89 gm200_validate_sample_locations(struct nvc0_context *nvc0, unsigned ms) in gm200_validate_sample_locations() argument
91 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in gm200_validate_sample_locations()
92 struct nvc0_screen *screen = nvc0->screen; in gm200_validate_sample_locations()
106 if (nvc0->sample_locations_enabled) { in gm200_validate_sample_locations()
108 memcpy(locations, nvc0->sample_locations, sizeof(locations)); in gm200_validate_sample_locations()
110 &screen->base.base, nvc0 in gm200_validate_sample_locations()
163 nvc0_validate_sample_locations(struct nvc0_context *nvc0, unsigned ms) nvc0_validate_sample_locations() argument
184 validate_sample_locations(struct nvc0_context *nvc0) validate_sample_locations() argument
195 nvc0_validate_fb(struct nvc0_context *nvc0) nvc0_validate_fb() argument
326 nvc0_validate_blend_colour(struct nvc0_context *nvc0) nvc0_validate_blend_colour() argument
338 nvc0_validate_stencil_ref(struct nvc0_context *nvc0) nvc0_validate_stencil_ref() argument
348 nvc0_validate_stipple(struct nvc0_context *nvc0) nvc0_validate_stipple() argument
359 nvc0_validate_scissor(struct nvc0_context *nvc0) nvc0_validate_scissor() argument
391 nvc0_validate_viewport(struct nvc0_context *nvc0) nvc0_validate_viewport() argument
448 nvc0_validate_window_rects(struct nvc0_context *nvc0) nvc0_validate_window_rects() argument
472 nvc0_upload_uclip_planes(struct nvc0_context *nvc0, unsigned s) nvc0_upload_uclip_planes() argument
487 nvc0_check_program_ucps(struct nvc0_context *nvc0, struct nvc0_program *vp, uint8_t mask) nvc0_check_program_ucps() argument
507 nvc0_validate_clip(struct nvc0_context *nvc0) nvc0_validate_clip() argument
548 nvc0_validate_blend(struct nvc0_context *nvc0) nvc0_validate_blend() argument
557 nvc0_validate_zsa(struct nvc0_context *nvc0) nvc0_validate_zsa() argument
566 nvc0_validate_rasterizer(struct nvc0_context *nvc0) nvc0_validate_rasterizer() argument
575 nvc0_constbufs_validate(struct nvc0_context *nvc0) nvc0_constbufs_validate() argument
634 nvc0_validate_buffers(struct nvc0_context *nvc0) nvc0_validate_buffers() argument
672 nvc0_validate_sample_mask(struct nvc0_context *nvc0) nvc0_validate_sample_mask() argument
692 nvc0_validate_min_samples(struct nvc0_context *nvc0) nvc0_validate_min_samples() argument
714 nvc0_validate_driverconst(struct nvc0_context *nvc0) nvc0_validate_driverconst() argument
727 nvc0_validate_fp_zsa_rast(struct nvc0_context *nvc0) nvc0_validate_fp_zsa_rast() argument
752 nvc0_validate_zsa_fb(struct nvc0_context *nvc0) nvc0_validate_zsa_fb() argument
766 nvc0_validate_rast_fb(struct nvc0_context *nvc0) nvc0_validate_rast_fb() argument
786 nvc0_validate_tess_state(struct nvc0_context *nvc0) nvc0_validate_tess_state() argument
801 nvc0_validate_fbread(struct nvc0_context *nvc0) nvc0_validate_fbread() argument
962 nvc0_state_validate(struct nvc0_context *nvc0, uint32_t mask, struct nvc0_state_validate *validate_list, int size, uint32_t *dirty, struct nouveau_bufctx *bufctx) nvc0_state_validate() argument
994 nvc0_state_validate_3d(struct nvc0_context *nvc0, uint32_t mask) nvc0_state_validate_3d() argument
[all...]
H A Dnvc0_shader_state.c28 #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, in nvc0_program_update_context_state() argument
38 const uint32_t flags = NV_VRAM_DOMAIN(&nvc0->screen->base) | NOUVEAU_BO_RDWR; in nvc0_program_update_context_state()
39 if (!nvc0->state.tls_required) in nvc0_program_update_context_state()
40 BCTX_REFN_bo(nvc0->bufctx_3d, 3D_TLS, flags, nvc0->screen->tls); in nvc0_program_update_context_state()
41 nvc0->state.tls_required |= 1 << stage; in nvc0_program_update_context_state()
43 if (nvc0 in nvc0_program_update_context_state()
50 nvc0_program_validate(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_validate() argument
69 nvc0_program_sp_start_id(struct nvc0_context *nvc0, int stage, struct nvc0_program *prog) nvc0_program_sp_start_id() argument
85 nvc0_vertprog_validate(struct nvc0_context *nvc0) nvc0_vertprog_validate() argument
105 nvc0_fragprog_validate(struct nvc0_context *nvc0) nvc0_fragprog_validate() argument
196 nvc0_tctlprog_validate(struct nvc0_context *nvc0) nvc0_tctlprog_validate() argument
224 nvc0_tevlprog_validate(struct nvc0_context *nvc0) nvc0_tevlprog_validate() argument
247 nvc0_gmtyprog_validate(struct nvc0_context *nvc0) nvc0_gmtyprog_validate() argument
267 nvc0_compprog_validate(struct nvc0_context *nvc0) nvc0_compprog_validate() argument
280 nvc0_layer_validate(struct nvc0_context *nvc0) nvc0_layer_validate() argument
308 nvc0_tfb_validate(struct nvc0_context *nvc0) nvc0_tfb_validate() argument
[all...]
H A Dnvc0_vbo.c32 #include "nvc0/nvc0_context.h"
33 #include "nvc0/nvc0_query_hw.h"
34 #include "nvc0/nvc0_resource.h"
36 #include "nvc0/nvc0_3d.xml.h"
172 nvc0_set_constant_vertex_attrib(struct nvc0_context *nvc0, const unsigned a) in nvc0_set_constant_vertex_attrib() argument
174 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_set_constant_vertex_attrib()
175 struct pipe_vertex_element *ve = &nvc0->vertex->element[a].pipe; in nvc0_set_constant_vertex_attrib()
176 struct pipe_vertex_buffer *vb = &nvc0->vtxbuf[ve->vertex_buffer_index]; in nvc0_set_constant_vertex_attrib()
203 nvc0_user_vbuf_range(struct nvc0_context *nvc0, int vbi, in nvc0_user_vbuf_range() argument
206 if (unlikely(nvc0 in nvc0_user_vbuf_range()
221 nvc0_release_user_vbufs(struct nvc0_context *nvc0) nvc0_release_user_vbufs() argument
230 nvc0_update_user_vbufs(struct nvc0_context *nvc0) nvc0_update_user_vbufs() argument
275 nvc0_update_user_vbufs_shared(struct nvc0_context *nvc0) nvc0_update_user_vbufs_shared() argument
315 nvc0_validate_vertex_buffers(struct nvc0_context *nvc0) nvc0_validate_vertex_buffers() argument
382 nvc0_validate_vertex_buffers_shared(struct nvc0_context *nvc0) nvc0_validate_vertex_buffers_shared() argument
435 nvc0_vertex_arrays_validate(struct nvc0_context *nvc0) nvc0_vertex_arrays_validate() argument
570 nvc0_draw_arrays(struct nvc0_context *nvc0, unsigned mode, unsigned start, unsigned count, unsigned instance_count) nvc0_draw_arrays() argument
700 nvc0_draw_elements(struct nvc0_context *nvc0, bool shorten, const struct pipe_draw_info *info, unsigned mode, unsigned start, unsigned count, unsigned instance_count, int32_t index_bias, unsigned index_size) nvc0_draw_elements() argument
769 nvc0_draw_stream_output(struct nvc0_context *nvc0, const struct pipe_draw_info *info, const struct pipe_draw_indirect_info *indirect) nvc0_draw_stream_output() argument
807 nvc0_draw_indirect(struct nvc0_context *nvc0, const struct pipe_draw_info *info, unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect) nvc0_draw_indirect() argument
906 nvc0_update_prim_restart(struct nvc0_context *nvc0, bool en, uint32_t index) nvc0_update_prim_restart() argument
941 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_draw_vbo() local
[all...]
H A Dnvc0_compute.c25 #include "nvc0/nvc0_context.h"
27 #include "nvc0/nvc0_compute.xml.h"
144 nvc0_compute_validate_samplers(struct nvc0_context *nvc0) in nvc0_compute_validate_samplers() argument
146 bool need_flush = nvc0_validate_tsc(nvc0, 5); in nvc0_compute_validate_samplers()
148 BEGIN_NVC0(nvc0->base.pushbuf, NVC0_CP(TSC_FLUSH), 1); in nvc0_compute_validate_samplers()
149 PUSH_DATA (nvc0->base.pushbuf, 0); in nvc0_compute_validate_samplers()
154 nvc0->samplers_dirty[s] = ~0; in nvc0_compute_validate_samplers()
155 nvc0->dirty_3d |= NVC0_NEW_3D_SAMPLERS; in nvc0_compute_validate_samplers()
159 nvc0_compute_validate_textures(struct nvc0_context *nvc0) in nvc0_compute_validate_textures() argument
161 bool need_flush = nvc0_validate_tic(nvc0, in nvc0_compute_validate_textures()
177 nvc0_compute_invalidate_constbufs(struct nvc0_context *nvc0) nvc0_compute_invalidate_constbufs() argument
190 nvc0_compute_validate_constbufs(struct nvc0_context *nvc0) nvc0_compute_validate_constbufs() argument
249 nvc0_compute_validate_driverconst(struct nvc0_context *nvc0) nvc0_compute_validate_driverconst() argument
265 nvc0_compute_validate_buffers(struct nvc0_context *nvc0) nvc0_compute_validate_buffers() argument
302 nvc0_compute_validate_globals(struct nvc0_context *nvc0) nvc0_compute_validate_globals() argument
317 nvc0_compute_invalidate_surfaces(struct nvc0_context *nvc0, const int s) nvc0_compute_invalidate_surfaces() argument
337 nvc0_compute_validate_surfaces(struct nvc0_context *nvc0) nvc0_compute_validate_surfaces() argument
369 nvc0_state_validate_cp(struct nvc0_context *nvc0, uint32_t mask) nvc0_state_validate_cp() argument
383 nvc0_compute_upload_input(struct nvc0_context *nvc0, const struct pipe_grid_info *info) nvc0_compute_upload_input() argument
425 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_launch_grid() local
508 nvc0_compute_update_indirect_invocations(struct nvc0_context *nvc0, const struct pipe_grid_info *info) nvc0_compute_update_indirect_invocations() argument
526 nvc0_update_compute_invocations_counter(struct nvc0_context *nvc0, const struct pipe_grid_info *info) nvc0_update_compute_invocations_counter() argument
[all...]
H A Dnvc0_state.c33 #include "nvc0/nvc0_stateobj.h"
34 #include "nvc0/nvc0_context.h"
35 #include "nvc0/nvc0_query_hw.h"
37 #include "nvc0/nvc0_3d.xml.h"
198 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_blend_state_bind() local
200 nvc0->blend = hwcso; in nvc0_blend_state_bind()
201 nvc0->dirty_3d |= NVC0_NEW_3D_BLEND; in nvc0_blend_state_bind()
350 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_rasterizer_state_bind() local
352 nvc0->rast = hwcso; in nvc0_rasterizer_state_bind()
353 nvc0 in nvc0_rasterizer_state_bind()
428 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_zsa_state_bind() local
462 nvc0_stage_sampler_states_bind(struct nvc0_context *nvc0, unsigned s, unsigned nr, void **hwcsos) nvc0_stage_sampler_states_bind() argument
518 nvc0_stage_set_sampler_views(struct nvc0_context *nvc0, int s, unsigned nr, bool take_ownership, struct pipe_sampler_view **views) nvc0_stage_set_sampler_views() argument
659 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_vp_state_bind() local
675 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_fp_state_bind() local
691 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_gp_state_bind() local
707 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_tcp_state_bind() local
723 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_tep_state_bind() local
778 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_cp_state_bind() local
790 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_constant_buffer() local
853 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_blend_color() local
863 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_stencil_ref() local
873 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_clip_state() local
883 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_sample_mask() local
892 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_min_samples() local
904 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_framebuffer_state() local
919 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_sample_locations() local
933 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_polygon_stipple() local
945 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_scissor_states() local
964 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_viewport_states() local
984 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_window_rectangles() local
999 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_tess_state() local
1009 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_patch_vertices() local
1021 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_vertex_buffers() local
1071 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_vertex_state_bind() local
1142 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_transform_feedback_targets() local
1179 nvc0_bind_surfaces_range(struct nvc0_context *nvc0, const unsigned t, unsigned start, unsigned nr, struct pipe_surface **psurfaces) nvc0_bind_surfaces_range() argument
1220 nvc0_bind_images_range(struct nvc0_context *nvc0, const unsigned s, unsigned start, unsigned nr, const struct pipe_image_view *pimages) nvc0_bind_images_range() argument
1330 nvc0_bind_buffers_range(struct nvc0_context *nvc0, const unsigned t, unsigned start, unsigned nr, const struct pipe_shader_buffer *pbuffers) nvc0_bind_buffers_range() argument
1414 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_set_global_bindings() local
1453 nvc0_init_state_functions(struct nvc0_context *nvc0) nvc0_init_state_functions() argument
[all...]
H A Dnve4_compute.c25 #include "nvc0/nvc0_context.h"
26 #include "nvc0/nve4_compute.h"
220 gm107_compute_validate_surfaces(struct nvc0_context *nvc0, in gm107_compute_validate_surfaces() argument
224 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in gm107_compute_validate_surfaces()
225 struct nvc0_screen *screen = nvc0->screen; in gm107_compute_validate_surfaces()
226 struct nouveau_bo *txc = nvc0->screen->txc; in gm107_compute_validate_surfaces()
231 tic = nv50_tic_entry(nvc0->images_tic[s][slot]); in gm107_compute_validate_surfaces()
234 nvc0_update_tic(nvc0, tic, res); in gm107_compute_validate_surfaces()
237 tic->id = nvc0_screen_tic_alloc(nvc0->screen, tic); in gm107_compute_validate_surfaces()
258 nvc0 in gm107_compute_validate_surfaces()
283 nve4_compute_validate_surfaces(struct nvc0_context *nvc0) nve4_compute_validate_surfaces() argument
329 nve4_compute_validate_samplers(struct nvc0_context *nvc0) nve4_compute_validate_samplers() argument
352 nve4_compute_set_tex_handles(struct nvc0_context *nvc0) nve4_compute_set_tex_handles() argument
387 nve4_compute_validate_constbufs(struct nvc0_context *nvc0) nve4_compute_validate_constbufs() argument
448 nve4_compute_validate_buffers(struct nvc0_context *nvc0) nve4_compute_validate_buffers() argument
502 nve4_state_validate_cp(struct nvc0_context *nvc0, uint32_t mask) nve4_state_validate_cp() argument
516 nve4_compute_upload_input(struct nvc0_context *nvc0, const struct pipe_grid_info *info) nve4_compute_upload_input() argument
601 nve4_compute_setup_buf_cb(struct nvc0_context *nvc0, bool gp100, void *desc) nve4_compute_setup_buf_cb() argument
625 nve4_compute_setup_launch_desc(struct nvc0_context *nvc0, uint32_t *qmd, const struct pipe_grid_info *info) nve4_compute_setup_launch_desc() argument
690 gp100_compute_setup_launch_desc(struct nvc0_context *nvc0, uint32_t *qmd, const struct pipe_grid_info *info) gp100_compute_setup_launch_desc() argument
750 gv100_compute_setup_launch_desc(struct nvc0_context *nvc0, u32 *qmd, const struct pipe_grid_info *info) gv100_compute_setup_launch_desc() argument
844 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_launch_grid() local
949 nve4_compute_validate_textures(struct nvc0_context *nvc0) nve4_compute_validate_textures() argument
1026 nve4_compute_trap_info(struct nvc0_context *nvc0) nve4_compute_trap_info() argument
[all...]
H A Dnvc0_tex.c23 #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, in nvc0_update_tic() argument
469 nvc0->base.push_data(&nvc0->base, nvc0->screen->txc, tic->id * 32, in nvc0_update_tic()
470 NV_VRAM_DOMAIN(&nvc0->screen->base), 32, in nvc0_update_tic()
479 nvc0_validate_tic(struct nvc0_context *nvc0, in argument
548 nve4_validate_tic(struct nvc0_context *nvc0, unsigned s) nve4_validate_tic() argument
598 nvc0_validate_textures(struct nvc0_context *nvc0) nvc0_validate_textures() argument
623 nvc0_validate_tsc(struct nvc0_context *nvc0, int s) nvc0_validate_tsc() argument
684 nve4_validate_tsc(struct nvc0_context *nvc0, int s) nve4_validate_tsc() argument
720 nvc0_validate_samplers(struct nvc0_context *nvc0) nvc0_validate_samplers() argument
743 nvc0_upload_tsc0(struct nvc0_context *nvc0) nvc0_upload_tsc0() argument
759 nve4_set_tex_handles(struct nvc0_context *nvc0) nve4_set_tex_handles() argument
799 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_create_texture_handle() local
846 view_bound(struct nvc0_context *nvc0, struct pipe_sampler_view *view) view_bound() argument
858 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_delete_texture_handle() local
879 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_make_texture_handle_resident() local
955 nve4_set_surface_info(struct nouveau_pushbuf *push, const struct pipe_image_view *view, struct nvc0_context *nvc0) nve4_set_surface_info() argument
1132 nvc0_validate_suf(struct nvc0_context *nvc0, int s) nvc0_validate_suf() argument
1239 nvc0_update_surface_bindings(struct nvc0_context *nvc0) nvc0_update_surface_bindings() argument
1250 gm107_validate_surfaces(struct nvc0_context *nvc0, struct pipe_image_view *view, int stage, int slot) gm107_validate_surfaces() argument
1295 nve4_update_surface_bindings(struct nvc0_context *nvc0) nve4_update_surface_bindings() argument
1337 nvc0_validate_surfaces(struct nvc0_context *nvc0) nvc0_validate_surfaces() argument
1350 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_create_image_handle() local
1381 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_delete_image_handle() local
1393 struct nvc0_context *nvc0 = nvc0_context(pipe); nve4_make_image_handle_resident() local
1427 struct nvc0_context *nvc0 = nvc0_context(pipe); gm107_create_image_handle() local
1467 struct nvc0_context *nvc0 = nvc0_context(pipe); gm107_delete_image_handle() local
1482 struct nvc0_context *nvc0 = nvc0_context(pipe); gm107_make_image_handle_resident() local
[all...]
H A Dnvc0_surface.c36 #include "nvc0/nvc0_context.h"
37 #include "nvc0/nvc0_resource.h"
211 struct nvc0_context *nvc0 = nvc0_context(pipe); in nvc0_resource_copy_region() local
217 nouveau_copy_buffer(&nvc0->base, in nvc0_resource_copy_region()
220 NOUVEAU_DRV_STAT(&nvc0->screen->base, buf_copy_bytes, src_box->width); in nvc0_resource_copy_region()
223 NOUVEAU_DRV_STAT(&nvc0->screen->base, tex_copy_count, 1); in nvc0_resource_copy_region()
249 nvc0->m2mf_copy_rect(nvc0, &drect, &srect, nx, ny); in nvc0_resource_copy_region()
267 BCTX_REFN(nvc0->bufctx, 2D, nv04_resource(src), RD); in nvc0_resource_copy_region()
268 BCTX_REFN(nvc0 in nvc0_resource_copy_region()
293 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear_render_target() local
375 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear_buffer_push_nvc0() local
424 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear_buffer_push_nve4() local
471 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear_buffer_push() local
498 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear_buffer() local
629 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear_depth_stencil() local
697 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_clear() local
789 struct nvc0_context *nvc0 = nvc0_context(pipe); gm200_evaluate_depth_buffer() local
814 struct nvc0_context *nvc0; global() member
931 struct nvc0_context *nvc0 = ctx->nvc0; nvc0_blit_set_dst() local
961 struct nvc0_context *nvc0 = ctx->nvc0; nvc0_blit_set_src() local
1053 struct nvc0_context *nvc0 = ctx->nvc0; nvc0_blitctx_pre_blit() local
1129 struct nvc0_context *nvc0 = blit->nvc0; nvc0_blitctx_post_blit() local
1196 nvc0_blit_3d(struct nvc0_context *nvc0, const struct pipe_blit_info *info) nvc0_blit_3d() argument
1428 nvc0_blit_eng2d(struct nvc0_context *nvc0, const struct pipe_blit_info *info) nvc0_blit_eng2d() argument
1608 struct nvc0_context *nvc0 = nvc0_context(pipe); nvc0_blit() local
1746 nvc0_blitctx_create(struct nvc0_context *nvc0) nvc0_blitctx_create() argument
1762 nvc0_blitctx_destroy(struct nvc0_context *nvc0) nvc0_blitctx_destroy() argument
1768 nvc0_init_surface_functions(struct nvc0_context *nvc0) nvc0_init_surface_functions() argument
[all...]
H A Dnvc0_query_hw.c26 #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"
34 nvc0_hw_query_allocate(struct nvc0_context *nvc0, struct nvc0_query *q, in nvc0_hw_query_allocate() argument
38 struct nvc0_screen *screen = nvc0->screen; in nvc0_hw_query_allocate()
58 ret = nouveau_bo_map(hq->bo, 0, nvc0->base.client); in nvc0_hw_query_allocate()
60 nvc0_hw_query_allocate(nvc0, q, 0); in nvc0_hw_query_allocate()
86 nvc0_hw_query_rotate(struct nvc0_context *nvc0, struct nvc0_query *q) in nvc0_hw_query_rotate() argument
93 nvc0_hw_query_allocate(nvc0, in nvc0_hw_query_rotate()
111 nvc0_hw_destroy_query(struct nvc0_context *nvc0, struct nvc0_query *q) nvc0_hw_destroy_query() argument
126 nvc0_hw_query_write_compute_invocations(struct nvc0_context *nvc0, struct nvc0_hw_query *hq, uint32_t offset) nvc0_hw_query_write_compute_invocations() argument
142 nvc0_hw_begin_query(struct nvc0_context *nvc0, struct nvc0_query *q) nvc0_hw_begin_query() argument
227 nvc0_hw_end_query(struct nvc0_context *nvc0, struct nvc0_query *q) nvc0_hw_end_query() argument
308 nvc0_hw_get_query_result(struct nvc0_context *nvc0, struct nvc0_query *q, bool wait, union pipe_query_result *result) nvc0_hw_get_query_result() argument
388 nvc0_hw_get_query_result_resource(struct nvc0_context *nvc0, struct nvc0_query *q, enum pipe_query_flags flags, enum pipe_query_value_type result_type, int index, struct pipe_resource *resource, unsigned offset) nvc0_hw_get_query_result_resource() argument
526 nvc0_hw_create_query(struct nvc0_context *nvc0, unsigned type, unsigned index) nvc0_hw_create_query() argument
638 nvc0_hw_query_fifo_wait(struct nvc0_context *nvc0, struct nvc0_query *q) nvc0_hw_query_fifo_wait() argument
[all...]
H A Dnvc0_vbo_translate.c8 #include "nvc0/nvc0_context.h"
9 #include "nvc0/nvc0_resource.h"
11 #include "nvc0/nvc0_3d.xml.h"
43 nvc0_push_context_init(struct nvc0_context *nvc0, struct push_context *ctx) in nvc0_push_context_init() argument
45 ctx->push = nvc0->base.pushbuf; in nvc0_push_context_init()
47 ctx->translate = nvc0->vertex->translate; in nvc0_push_context_init()
48 ctx->vertex_size = nvc0->vertex->size; in nvc0_push_context_init()
52 nvc0->vertprog->vp.need_vertex_id && (nvc0->vertex->num_elements < 32); in nvc0_push_context_init()
55 ctx->edgeflag.enabled = nvc0 in nvc0_push_context_init()
64 nvc0_vertex_configure_translate(struct nvc0_context *nvc0, int32_t index_bias) nvc0_vertex_configure_translate() argument
91 nvc0_push_map_idxbuf(struct push_context *ctx, struct nvc0_context *nvc0, const struct pipe_draw_info *info) nvc0_push_map_idxbuf() argument
104 nvc0_push_map_edgeflag(struct push_context *ctx, struct nvc0_context *nvc0, int32_t index_bias) nvc0_push_map_edgeflag() argument
220 nvc0_push_setup_vertex_array(struct nvc0_context *nvc0, const unsigned count) nvc0_push_setup_vertex_array() argument
494 nvc0_push_vbo_indirect(struct nvc0_context *nvc0, const struct pipe_draw_info *info, unsigned drawid_offset, const struct pipe_draw_indirect_info *indirect, const struct pipe_draw_start_count_bias *draw) nvc0_push_vbo_indirect() argument
559 nvc0_push_vbo(struct nvc0_context *nvc0, const struct pipe_draw_info *info, const struct pipe_draw_indirect_info *indirect, const struct pipe_draw_start_count_bias *draw) nvc0_push_vbo() argument
712 nvc0_push_upload_vertex_ids(struct push_context *ctx, struct nvc0_context *nvc0, const struct pipe_draw_info *info, const struct pipe_draw_start_count_bias *draw) nvc0_push_upload_vertex_ids() argument
[all...]
H A Dnvc0_transfer.c4 #include "nvc0/nvc0_context.h"
15 nvc0_m2mf_transfer_rect(struct nvc0_context *nvc0, in nvc0_m2mf_transfer_rect() argument
20 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_m2mf_transfer_rect()
21 struct nouveau_bufctx *bctx = nvc0->bufctx; in nvc0_m2mf_transfer_rect()
110 nve4_m2mf_transfer_rect(struct nvc0_context *nvc0, in nve4_m2mf_transfer_rect() argument
129 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nve4_m2mf_transfer_rect()
130 struct nouveau_bufctx *bctx = nvc0->bufctx; in nve4_m2mf_transfer_rect()
203 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); in nvc0_m2mf_push_linear() local
208 nouveau_bufctx_refn(nvc0->bufctx, 0, dst, domain | NOUVEAU_BO_WR); in nvc0_m2mf_push_linear()
209 nouveau_pushbuf_bufctx(push, nvc0 in nvc0_m2mf_push_linear()
245 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); nve4_p2mf_push_linear() local
360 nvc0_mt_sync(struct nvc0_context *nvc0, struct nv50_miptree *mt, unsigned usage) nvc0_mt_sync() argument
380 struct nvc0_context *nvc0 = nvc0_context(pctx); nvc0_miptree_transfer_map() local
499 struct nvc0_context *nvc0 = nvc0_context(pctx); nvc0_miptree_transfer_unmap() local
543 struct nvc0_context *nvc0 = nvc0_context(&nv->pipe); nvc0_cb_push() local
613 nvc0_init_transfer_functions(struct nvc0_context *nvc0) nvc0_init_transfer_functions() argument
[all...]
H A Dnvc0_query.c27 #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); in nvc0_create_query() local
40 q = nvc0_sw_create_query(nvc0, type, index); in nvc0_create_query()
42 q = nvc0_hw_create_query(nvc0, type, index); in nvc0_create_query()
100 struct nvc0_context *nvc0 in nvc0_render_condition() local
271 nvc0_init_query_functions(struct nvc0_context *nvc0) nvc0_init_query_functions() argument
[all...]
H A Dnvc0_program.c29 #include "nvc0/nvc0_context.h"
32 #include "nvc0/nve4_compute.h"
773 nvc0_program_alloc_code(struct nvc0_context *nvc0, struct nvc0_program *prog) in nvc0_program_alloc_code() argument
775 struct nvc0_screen *screen = nvc0->screen; in nvc0_program_alloc_code()
825 nvc0_program_upload_code(struct nvc0_context *nvc0, struct nvc0_program *prog) in nvc0_program_upload_code() argument
827 struct nvc0_screen *screen = nvc0->screen; in nvc0_program_upload_code()
864 nvc0->base.push_data(&nvc0->base, screen->text, prog->code_base, in nvc0_program_upload_code()
867 nvc0->base.push_data(&nvc0 in nvc0_program_upload_code()
873 nvc0_program_upload(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_upload() argument
962 nvc0_program_library_upload(struct nvc0_context *nvc0) nvc0_program_library_upload() argument
988 nvc0_program_destroy(struct nvc0_context *nvc0, struct nvc0_program *prog) nvc0_program_destroy() argument
1011 nvc0_program_init_tcp_empty(struct nvc0_context *nvc0) nvc0_program_init_tcp_empty() argument
[all...]
H A Dnvc0_query_sw.c24 #include "nvc0/nvc0_context.h"
68 nvc0_sw_destroy_query(struct nvc0_context *nvc0, struct nvc0_query *q) in nvc0_sw_destroy_query() argument
75 nvc0_sw_begin_query(struct nvc0_context *nvc0, struct nvc0_query *q) in nvc0_sw_begin_query() argument
81 sq->value = nvc0->screen->base.stats.v[q->index]; in nvc0_sw_begin_query()
90 nvc0_sw_end_query(struct nvc0_context *nvc0, struct nvc0_query *q) in nvc0_sw_end_query() argument
94 sq->value = nvc0->screen->base.stats.v[q->index] - sq->value; in nvc0_sw_end_query()
99 nvc0_sw_get_query_result(struct nvc0_context *nvc0, struct nvc0_query *q, in nvc0_sw_get_query_result() argument
H A Dnvc0_query_hw_metric.c23 #include "nvc0/nvc0_context.h"
24 #include "nvc0/nvc0_query_hw_metric.h"
25 #include "nvc0/nvc0_query_hw_sm.h"
445 nvc0_hw_metric_query_get_cfg(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) in nvc0_hw_metric_query_get_cfg() argument
448 struct nvc0_screen *screen = nvc0->screen; in nvc0_hw_metric_query_get_cfg()
465 nvc0_hw_metric_destroy_query(struct nvc0_context *nvc0, in nvc0_hw_metric_destroy_query() argument
473 hmq->queries[i]->funcs->destroy_query(nvc0, hmq->queries[i]); in nvc0_hw_metric_destroy_query()
478 nvc0_hw_metric_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) in nvc0_hw_metric_begin_query() argument
485 ret = hmq->queries[i]->funcs->begin_query(nvc0, hmq->queries[i]); in nvc0_hw_metric_begin_query()
493 nvc0_hw_metric_end_query(struct nvc0_context *nvc0, struc argument
667 nvc0_hw_metric_get_query_result(struct nvc0_context *nvc0, struct nvc0_hw_query *hq, bool wait, union pipe_query_result *result) nvc0_hw_metric_get_query_result() argument
717 nvc0_hw_metric_create_query(struct nvc0_context *nvc0, unsigned type) nvc0_hw_metric_create_query() argument
[all...]
H A Dnvc0_query_hw_sm.c26 #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"
2282 nvc0_hw_sm_query_get_cfg(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) in nvc0_hw_sm_query_get_cfg() argument
2285 struct nvc0_screen *screen = nvc0->screen; in nvc0_hw_sm_query_get_cfg()
2302 nvc0_hw_sm_destroy_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) in nvc0_hw_sm_destroy_query() argument
2305 nvc0_hw_query_allocate(nvc0, q, 0); in nvc0_hw_sm_destroy_query()
2311 nve4_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) in nve4_hw_sm_begin_query() argument
2313 struct nvc0_screen *screen = nvc0 in nve4_hw_sm_begin_query()
2396 nvc0_hw_sm_begin_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) nvc0_hw_sm_begin_query() argument
2501 nvc0_hw_sm_upload_input(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) nvc0_hw_sm_upload_input() argument
2535 nvc0_hw_sm_end_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq) nvc0_hw_sm_end_query() argument
2623 nvc0_hw_sm_query_read_data(uint32_t count[32][8], struct nvc0_context *nvc0, bool wait, struct nvc0_hw_query *hq, const struct nvc0_hw_sm_query_cfg *cfg, unsigned mp_count) nvc0_hw_sm_query_read_data() argument
2649 nve4_hw_sm_query_read_data(uint32_t count[32][8], struct nvc0_context *nvc0, bool wait, struct nvc0_hw_query *hq, const struct nvc0_hw_sm_query_cfg *cfg, unsigned mp_count) nve4_hw_sm_query_read_data() argument
2681 nvc0_hw_sm_get_query_result(struct nvc0_context *nvc0, struct nvc0_hw_query *hq, bool wait, union pipe_query_result *result) nvc0_hw_sm_get_query_result() argument
2717 nvc0_hw_sm_create_query(struct nvc0_context *nvc0, unsigned type) nvc0_hw_sm_create_query() argument
[all...]
H A Dnvc0_miptree.c31 #include "nvc0/nvc0_context.h"
32 #include "nvc0/nvc0_resource.h"
327 if (config->nvc0.memtype == 0x00) in nvc0_miptree_get_modifier()
329 if (NVC0_TILE_MODE_Y(config->nvc0.tile_mode) > 5) in nvc0_miptree_get_modifier()
331 if (config->nvc0.memtype != uc_kind) in nvc0_miptree_get_modifier()
338 config->nvc0.memtype, in nvc0_miptree_get_modifier()
339 NVC0_TILE_MODE_Y(config->nvc0.tile_mode)); in nvc0_miptree_get_modifier()
496 bo_config.nvc0.memtype = 0; in nvc0_miptree_create()
498 bo_config.nvc0.memtype = (modifier >> 12) & 0xff; in nvc0_miptree_create()
501 bo_config.nvc0 in nvc0_miptree_create()
[all...]
H A Dnvc0_context.h14 #include "nvc0/nvc0_winsys.h"
15 #include "nvc0/nvc0_stateobj.h"
16 #include "nvc0/nvc0_screen.h"
17 #include "nvc0/nvc0_program.h"
18 #include "nvc0/nvc0_resource.h"
19 #include "nvc0/nvc0_query.h"
27 #include "nvc0/nvc0_3d.xml.h"
29 #include "nvc0/nvc0_m2mf.xml.h"
30 #include "nvc0/nve4_copy.xml.h"
31 #include "nvc0/nve4_p2m
[all...]
H A Dnvc0_video.c23 #include "nvc0/nvc0_video.h"
94 struct nvc0_context *nvc0 = nvc0_context(context); in nvc0_create_decoder() local
95 struct nouveau_screen *screen = &nvc0->screen->base; in nvc0_create_decoder()
101 cfg.nvc0.tile_mode = 0x10; in nvc0_create_decoder()
102 cfg.nvc0.memtype = 0xfe; in nvc0_create_decoder()
120 dec->client = nvc0->base.client; in nvc0_create_decoder()
164 ret = nouveau_pushbuf_new(nvc0->base.client, dec->channel[i], 4, in nvc0_create_decoder()
H A Dnvc0_video_bsp.c23 #include "nvc0/nvc0_video.h"
71 cfg.nvc0.tile_mode = 0x10; in nvc0_decoder_bsp_next()
72 cfg.nvc0.memtype = 0xfe; in nvc0_decoder_bsp_next()
107 cfg.nvc0.tile_mode = 0x10; in nvc0_decoder_bsp_next()
108 cfg.nvc0.memtype = 0xfe; in nvc0_decoder_bsp_next()
H A Dnvc0_query.h17 void (*get_query_result_resource)(struct nvc0_context *nvc0,
H A Dnvc0_winsys.h102 return bo->config.nvc0.memtype;
/third_party/libdrm/nouveau/
H A Dabi16.c63 struct nvc0_fifo *nvc0 = obj->data; in abi16_chan_nvc0() local
71 nvc0->base.channel = req.channel; in abi16_chan_nvc0()
72 nvc0->base.pushbuf = req.pushbuf_domains; in abi16_chan_nvc0()
73 nvc0->notify = req.notifier_handle; in abi16_chan_nvc0()
74 nvc0->base.object->handle = req.channel; in abi16_chan_nvc0()
75 nvc0->base.object->length = sizeof(*nvc0); in abi16_chan_nvc0()
293 bo->config.nvc0.memtype = (info->tile_flags & 0xff00) >> 8; in abi16_bo_info()
294 bo->config.nvc0.tile_mode = info->tile_mode; in abi16_bo_info()
338 info->tile_flags = (config->nvc0 in abi16_bo_init()
[all...]
H A Dnouveau.h108 } nvc0; member

Completed in 20 milliseconds