/third_party/libdrm/tegra/ |
H A D | pushbuf.c | 40 drm_tegra_pushbuf_get_offset(struct drm_tegra_pushbuf *pushbuf, uint32_t *ptr) in drm_tegra_pushbuf_get_offset() argument 42 return ptr - pushbuf->start; in drm_tegra_pushbuf_get_offset() 45 void drm_tegra_pushbuf_free(struct drm_tegra_pushbuf *pushbuf) in drm_tegra_pushbuf_free() argument 47 if (pushbuf->start) in drm_tegra_pushbuf_free() 48 free(pushbuf->start); in drm_tegra_pushbuf_free() 50 free(pushbuf); in drm_tegra_pushbuf_free() 55 * @pushbuf: push buffer 59 drm_tegra_pushbuf_begin(struct drm_tegra_pushbuf *pushbuf, in drm_tegra_pushbuf_begin() argument 62 struct drm_tegra_job *job = pushbuf->job; in drm_tegra_pushbuf_begin() 67 if (pushbuf in drm_tegra_pushbuf_begin() 88 drm_tegra_pushbuf_end(struct drm_tegra_pushbuf *pushbuf, uint32_t *ptr) drm_tegra_pushbuf_end() argument 105 drm_tegra_pushbuf_wait(struct drm_tegra_pushbuf *pushbuf, struct drm_tegra_syncpoint *syncpt, uint32_t value) drm_tegra_pushbuf_wait() argument 124 drm_tegra_pushbuf_relocate(struct drm_tegra_pushbuf *pushbuf, uint32_t **ptrp, struct drm_tegra_mapping *target, unsigned long offset, unsigned int shift, uint32_t flags) drm_tegra_pushbuf_relocate() argument 158 drm_tegra_pushbuf_sync(struct drm_tegra_pushbuf *pushbuf, struct drm_tegra_syncpoint *syncpt, unsigned int count) drm_tegra_pushbuf_sync() argument 171 drm_tegra_pushbuf_sync_cond(struct drm_tegra_pushbuf *pushbuf, uint32_t **ptrp, struct drm_tegra_syncpoint *syncpt, enum drm_tegra_sync_cond cond) drm_tegra_pushbuf_sync_cond() argument [all...] |
H A D | job.c | 87 if (job->pushbuf) in drm_tegra_job_free() 88 drm_tegra_pushbuf_free(job->pushbuf); in drm_tegra_job_free() 105 struct drm_tegra_pushbuf *pushbuf; in drm_tegra_job_get_pushbuf() local 107 if (!job->pushbuf) { in drm_tegra_job_get_pushbuf() 108 pushbuf = calloc(1, sizeof(*pushbuf)); in drm_tegra_job_get_pushbuf() 109 if (!pushbuf) in drm_tegra_job_get_pushbuf() 112 pushbuf->job = job; in drm_tegra_job_get_pushbuf() 114 pushbuf->start = calloc(1, job->page_size); in drm_tegra_job_get_pushbuf() 115 if (!pushbuf in drm_tegra_job_get_pushbuf() [all...] |
H A D | tegra.h | 103 int drm_tegra_pushbuf_begin(struct drm_tegra_pushbuf *pushbuf, 105 int drm_tegra_pushbuf_end(struct drm_tegra_pushbuf *pushbuf, uint32_t *ptr); 106 int drm_tegra_pushbuf_wait(struct drm_tegra_pushbuf *pushbuf, 109 int drm_tegra_pushbuf_relocate(struct drm_tegra_pushbuf *pushbuf, 114 int drm_tegra_pushbuf_sync(struct drm_tegra_pushbuf *pushbuf, 117 int drm_tegra_pushbuf_sync_cond(struct drm_tegra_pushbuf *pushbuf,
|
/third_party/libdrm/tests/tegra/ |
H A D | vic-flip.c | 38 struct drm_tegra_pushbuf *pushbuf; in clear() local 49 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in clear() 55 err = drm_tegra_pushbuf_begin(pushbuf, 32, &ptr); in clear() 67 err = vic->ops->execute(vic, pushbuf, &ptr, output, NULL, 0); in clear() 73 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, vic->syncpt, in clear() 80 err = drm_tegra_pushbuf_end(pushbuf, ptr); in clear() 107 struct drm_tegra_pushbuf *pushbuf; in fill() local 118 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in fill() 124 err = drm_tegra_pushbuf_begin(pushbuf, 32, &ptr); in fill() 137 err = vic->ops->execute(vic, pushbuf, in fill() 177 struct drm_tegra_pushbuf *pushbuf; flip() local [all...] |
H A D | vic-blit.c | 38 struct drm_tegra_pushbuf *pushbuf; in clear() local 49 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in clear() 61 err = drm_tegra_pushbuf_begin(pushbuf, 32, &ptr); in clear() 67 err = vic->ops->execute(vic, pushbuf, &ptr, output, NULL, 0); in clear() 73 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, vic->syncpt, in clear() 80 err = drm_tegra_pushbuf_end(pushbuf, ptr); in clear() 107 struct drm_tegra_pushbuf *pushbuf; in fill() local 118 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in fill() 124 err = drm_tegra_pushbuf_begin(pushbuf, 32, &ptr); in fill() 137 err = vic->ops->execute(vic, pushbuf, in fill() 177 struct drm_tegra_pushbuf *pushbuf; blit() local [all...] |
H A D | vic-clear.c | 45 struct drm_tegra_pushbuf *pushbuf; in main() local 113 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in main() 119 err = drm_tegra_pushbuf_begin(pushbuf, 32, &pb); in main() 131 err = vic->ops->execute(vic, pushbuf, &pb, output, NULL, 0); in main() 137 err = drm_tegra_pushbuf_sync_cond(pushbuf, &pb, vic->syncpt, in main() 144 err = drm_tegra_pushbuf_end(pushbuf, pb); in main()
|
H A D | syncpt-timeout.c | 65 struct drm_tegra_pushbuf *pushbuf; in main() local 107 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in main() 113 err = drm_tegra_pushbuf_begin(pushbuf, 8, &ptr); in main() 124 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, syncpt, in main() 132 err = drm_tegra_pushbuf_sync(pushbuf, syncpt, 1); in main() 138 err = drm_tegra_pushbuf_end(pushbuf, ptr); in main()
|
H A D | drm-test-tegra.c | 71 struct drm_tegra_pushbuf *pushbuf; in drm_tegra_gr2d_fill() local 85 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in drm_tegra_gr2d_fill() 89 err = drm_tegra_pushbuf_begin(pushbuf, 32, &ptr); in drm_tegra_gr2d_fill() 107 err = drm_tegra_pushbuf_relocate(pushbuf, &ptr, map, 0, 0, 0); in drm_tegra_gr2d_fill() 125 err = drm_tegra_pushbuf_end(pushbuf, ptr); in drm_tegra_gr2d_fill()
|
H A D | syncpt-wait.c | 65 struct drm_tegra_pushbuf *pushbuf; in main() local 107 err = drm_tegra_job_get_pushbuf(job, &pushbuf); in main() 113 err = drm_tegra_pushbuf_begin(pushbuf, 4, &ptr); in main() 119 err = drm_tegra_pushbuf_sync_cond(pushbuf, &ptr, syncpt, in main() 126 err = drm_tegra_pushbuf_end(pushbuf, ptr); in main()
|
H A D | vic.h | 102 static inline void VIC_PUSH_METHOD(struct drm_tegra_pushbuf *pushbuf, in VIC_PUSH_METHOD() argument 111 static inline void VIC_PUSH_BUFFER(struct drm_tegra_pushbuf *pushbuf, in VIC_PUSH_BUFFER() argument 119 drm_tegra_pushbuf_relocate(pushbuf, ptrp, map, offset, 8, flags); in VIC_PUSH_BUFFER() 136 struct drm_tegra_pushbuf *pushbuf,
|
H A D | vic41.c | 227 static int vic41_execute(struct vic *v, struct drm_tegra_pushbuf *pushbuf, in vic41_execute() argument 237 VIC_PUSH_METHOD(pushbuf, ptrp, NVB1B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID, 1); in vic41_execute() 238 VIC_PUSH_METHOD(pushbuf, ptrp, NVB1B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS, (sizeof(ConfigStruct) / 16) << 16); in vic41_execute() 239 VIC_PUSH_BUFFER(pushbuf, ptrp, NVB1B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET, vic->config.map, 0, 0); in vic41_execute() 240 VIC_PUSH_BUFFER(pushbuf, ptrp, NVB1B6_VIDEO_COMPOSITOR_SET_FILTER_STRUCT_OFFSET, vic->filter.map, 0, 0); in vic41_execute() 241 VIC_PUSH_BUFFER(pushbuf, ptrp, NVB1B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET, output->map, 0, 0); in vic41_execute() 246 VIC_PUSH_BUFFER(pushbuf, ptrp, method, inputs[i]->map, 0, 0); in vic41_execute() 249 VIC_PUSH_METHOD(pushbuf, ptrp, NVB1B6_VIDEO_COMPOSITOR_EXECUTE, 1 << 8); in vic41_execute()
|
H A D | vic42.c | 227 static int vic42_execute(struct vic *v, struct drm_tegra_pushbuf *pushbuf, in vic42_execute() argument 237 VIC_PUSH_METHOD(pushbuf, ptrp, NVC5B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID, 1); in vic42_execute() 238 VIC_PUSH_METHOD(pushbuf, ptrp, NVC5B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS, (sizeof(ConfigStruct) / 16) << 16); in vic42_execute() 239 VIC_PUSH_BUFFER(pushbuf, ptrp, NVC5B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET, vic->config.map, 0, 0); in vic42_execute() 240 VIC_PUSH_BUFFER(pushbuf, ptrp, NVC5B6_VIDEO_COMPOSITOR_SET_FILTER_STRUCT_OFFSET, vic->filter.map, 0, 0); in vic42_execute() 241 VIC_PUSH_BUFFER(pushbuf, ptrp, NVC5B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET, output->map, 0, 0); in vic42_execute() 246 VIC_PUSH_BUFFER(pushbuf, ptrp, method, inputs[i]->map, 0, 0); in vic42_execute() 249 VIC_PUSH_METHOD(pushbuf, ptrp, NVC5B6_VIDEO_COMPOSITOR_EXECUTE, 1 << 8); in vic42_execute()
|
H A D | vic30.c | 319 static int vic30_execute(struct vic *v, struct drm_tegra_pushbuf *pushbuf, in vic30_execute() argument 329 VIC_PUSH_METHOD(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID, 1); in vic30_execute() 330 VIC_PUSH_METHOD(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS, (sizeof(ConfigStruct) / 16) << 16); in vic30_execute() 331 VIC_PUSH_BUFFER(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET, vic->config.map, 0, 0); in vic30_execute() 332 VIC_PUSH_BUFFER(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_SET_HIST_OFFSET, vic->hist.map, 0, 0); in vic30_execute() 333 VIC_PUSH_BUFFER(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET, output->map, 0, 0); in vic30_execute() 336 VIC_PUSH_BUFFER(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_LUMA_OFFSET, inputs[i]->map, 0, 0); in vic30_execute() 338 VIC_PUSH_METHOD(pushbuf, ptrp, NVA0B6_VIDEO_COMPOSITOR_EXECUTE, 1 << 8); in vic30_execute()
|
H A D | vic40.c | 227 static int vic40_execute(struct vic *v, struct drm_tegra_pushbuf *pushbuf, in vic40_execute() argument 237 VIC_PUSH_METHOD(pushbuf, ptrp, NVB0B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID, 1); in vic40_execute() 238 VIC_PUSH_METHOD(pushbuf, ptrp, NVB0B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS, (sizeof(ConfigStruct) / 16) << 16); in vic40_execute() 239 VIC_PUSH_BUFFER(pushbuf, ptrp, NVB0B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET, vic->config.map, 0, 0); in vic40_execute() 240 VIC_PUSH_BUFFER(pushbuf, ptrp, NVB0B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET, output->map, 0, 0); in vic40_execute() 243 VIC_PUSH_BUFFER(pushbuf, ptrp, NVB0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_LUMA_OFFSET, inputs[i]->map, 0, 0); in vic40_execute() 245 VIC_PUSH_METHOD(pushbuf, ptrp, NVB0B6_VIDEO_COMPOSITOR_EXECUTE, 1 << 8); in vic40_execute()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_state_validate.c | 40 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_fb() 177 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_blend_colour() 206 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_stencil_ref() 217 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_stipple() 226 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_scissor() 248 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_viewport() 277 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_clip() 298 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_blend() 307 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_zsa() 316 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_validate_rasterizer() [all...] |
H A D | nv30_context.c | 76 struct nouveau_pushbuf *push = nv30->base.pushbuf; in nv30_context_flush() 171 if (nv30->screen->base.pushbuf->user_priv == &nv30->bufctx) in nv30_context_destroy() 172 nv30->screen->base.pushbuf->user_priv = NULL; in nv30_context_destroy() 222 push = screen->base.pushbuf; in nv30_context_create() 223 nv30->base.pushbuf = push; in nv30_context_create()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_state_validate.c | 12 struct nouveau_pushbuf *push = nvc0->base.pushbuf; 91 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in gm200_validate_sample_locations() 165 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_sample_locations() 197 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_fb() 328 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_blend_colour() 340 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_stencil_ref() 350 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_stipple() 362 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_scissor() 393 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_viewport() 450 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_validate_window_rects() [all...] |
H A D | nvc0_shader_state.c | 72 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_program_sp_start_id() 87 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_vertprog_validate() 107 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_fragprog_validate() 198 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_tctlprog_validate() 226 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_tevlprog_validate() 249 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_gmtyprog_validate() 269 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_compprog_validate() 282 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_layer_validate() 310 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_tfb_validate()
|
H A D | nvc0_context.c | 89 PUSH_KICK(nvc0->base.pushbuf); /* fencing handled in kick_notify */ in nvc0_flush() 97 struct nouveau_pushbuf *push = nvc0_context(pipe)->base.pushbuf; in nvc0_texture_barrier() 107 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_memory_barrier() 163 struct nouveau_pushbuf *push = nvc0_context(pipe)->base.pushbuf; in nvc0_emit_string_marker() 259 nouveau_pushbuf_bufctx(nvc0->base.pushbuf, NULL); in nvc0_destroy() 260 nouveau_pushbuf_kick(nvc0->base.pushbuf, nvc0->base.pushbuf->channel); in nvc0_destroy() 428 nvc0->base.pushbuf = screen->base.pushbuf; in nvc0_create() 503 nouveau_pushbuf_bufctx(screen->base.pushbuf, nvc in nvc0_create() [all...] |
H A D | nvc0_compute.c | 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() 163 BEGIN_NVC0(nvc0->base.pushbuf, NVC0_CP(TIC_FLUSH), 1); in nvc0_compute_validate_textures() 164 PUSH_DATA (nvc0->base.pushbuf, 0); in nvc0_compute_validate_textures() 192 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_compute_validate_constbufs() 251 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_compute_validate_driverconst() 267 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_compute_validate_buffers() 319 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_compute_invalidate_surfaces() 386 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_compute_upload_input() 427 struct nouveau_pushbuf *push = nvc0->base.pushbuf; in nvc0_launch_grid() [all...] |
H A D | nvc0_video_ppp.c | 27 struct nouveau_pushbuf *push = dec->pushbuf[2]; in nvc0_decoder_setup_ppp() 77 struct nouveau_pushbuf *push = dec->pushbuf[2]; in nvc0_decoder_vc1_ppp() 94 struct nouveau_pushbuf *push = dec->pushbuf[2]; in nvc0_decoder_ppp()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_state_validate.c | 22 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_fb() 152 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_blend_colour() 164 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_stencil_ref() 175 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_stipple() 186 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_scissor() 250 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_viewport() 289 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_window_rects() 340 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_derived_2() 353 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_clip() 387 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_blend() [all...] |
H A D | nv50_context.c | 42 PUSH_KICK(context->pushbuf); in nv50_flush() 50 struct nouveau_pushbuf *push = nv50_context(pipe)->base.pushbuf; in nv50_texture_barrier() 62 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_memory_barrier() 114 struct nouveau_pushbuf *push = nv50_context(pipe)->base.pushbuf; in nv50_emit_string_marker() 196 nouveau_pushbuf_bufctx(nv50->base.pushbuf, NULL); in nv50_destroy() 197 nouveau_pushbuf_kick(nv50->base.pushbuf, nv50->base.pushbuf->channel); in nv50_destroy() 316 nv50->base.pushbuf = screen->base.pushbuf; in nv50_create() 360 nouveau_pushbuf_bufctx(screen->base.pushbuf, nv5 in nv50_create() [all...] |
H A D | nv50_shader_state.c | 37 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_constbufs_validate() 157 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_vertprog_validate() 178 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_fragprog_validate() 265 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_gmtyprog_validate() 292 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_compprog_validate() 305 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_sprite_coords_validate() 362 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_validate_derived_rs() 427 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_fp_linkage_validate() 637 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_gp_linkage_validate() 665 struct nouveau_pushbuf *push = nv50->base.pushbuf; in nv50_stream_output_validate() [all...] |
H A D | nv98_video_ppp.c | 27 struct nouveau_pushbuf *push = dec->pushbuf[2]; in nv98_decoder_setup_ppp() 77 struct nouveau_pushbuf *push = dec->pushbuf[2]; in nv98_decoder_vc1_ppp() 94 struct nouveau_pushbuf *push = dec->pushbuf[2]; in nv98_decoder_ppp()
|