• Home
  • Raw
  • Download

Lines Matching refs:submit

132         struct panfrost_submit *submit;  in igt_panfrost_trivial_job()  local
197 submit = malloc(sizeof(*submit)); in igt_panfrost_trivial_job()
199 submit->fbo = igt_panfrost_gem_new(fd, ALIGN(width, 16) * height * 4); in igt_panfrost_trivial_job()
200 rts.framebuffer = submit->fbo->offset; in igt_panfrost_trivial_job()
201 sfbd_framebuffer.framebuffer = submit->fbo->offset; in igt_panfrost_trivial_job()
203 submit->tiler_heap_bo = igt_panfrost_gem_new(fd, 32768 * 128); in igt_panfrost_trivial_job()
204 mfbd_framebuffer.tiler_heap_start = submit->tiler_heap_bo->offset; in igt_panfrost_trivial_job()
205 mfbd_framebuffer.tiler_heap_end = submit->tiler_heap_bo->offset + 32768 * 128; in igt_panfrost_trivial_job()
209 submit->tiler_scratch_bo = igt_panfrost_gem_new(fd, 128 * 128 * 128); in igt_panfrost_trivial_job()
210 mfbd_framebuffer.tiler_scratch_start = submit->tiler_scratch_bo->offset; in igt_panfrost_trivial_job()
211 mfbd_framebuffer.tiler_scratch_middle = submit->tiler_scratch_bo->offset + 0xf0000; in igt_panfrost_trivial_job()
214 submit->scratchpad_bo = igt_panfrost_gem_new(fd, 64 * 4096); in igt_panfrost_trivial_job()
215 igt_panfrost_bo_mmap(fd, submit->scratchpad_bo); in igt_panfrost_trivial_job()
216 mfbd_framebuffer.scratchpad = submit->scratchpad_bo->offset; in igt_panfrost_trivial_job()
217 sfbd_framebuffer.unknown_address_1 = submit->scratchpad_bo->offset; in igt_panfrost_trivial_job()
218 sfbd_framebuffer.unknown_address_2 = submit->scratchpad_bo->offset + 512; in igt_panfrost_trivial_job()
220 known_unknown = ((void*)submit->scratchpad_bo->map) + 512; in igt_panfrost_trivial_job()
224submit->fb_bo = igt_panfrost_gem_new(fd, sizeof(mfbd_framebuffer) + sizeof(struct bifrost_render_t… in igt_panfrost_trivial_job()
225 igt_panfrost_bo_mmap(fd, submit->fb_bo); in igt_panfrost_trivial_job()
226 memcpy(submit->fb_bo->map, &mfbd_framebuffer, sizeof(mfbd_framebuffer)); in igt_panfrost_trivial_job()
227 … memcpy(submit->fb_bo->map + sizeof(mfbd_framebuffer), &rts, sizeof(struct bifrost_render_target)); in igt_panfrost_trivial_job()
228 payload.framebuffer = submit->fb_bo->offset | MALI_MFBD; in igt_panfrost_trivial_job()
233 submit->fb_bo = igt_panfrost_gem_new(fd, sizeof(sfbd_framebuffer)); in igt_panfrost_trivial_job()
234 igt_panfrost_bo_mmap(fd, submit->fb_bo); in igt_panfrost_trivial_job()
235 memcpy(submit->fb_bo->map, &sfbd_framebuffer, sizeof(sfbd_framebuffer)); in igt_panfrost_trivial_job()
236 payload.framebuffer = submit->fb_bo->offset | MALI_SFBD; in igt_panfrost_trivial_job()
239 submit->submit_bo = igt_panfrost_gem_new(fd, sizeof(header) + sizeof(payload) + 1024000); in igt_panfrost_trivial_job()
240 igt_panfrost_bo_mmap(fd, submit->submit_bo); in igt_panfrost_trivial_job()
242 memcpy(submit->submit_bo->map, &header, sizeof(header)); in igt_panfrost_trivial_job()
243 memcpy(submit->submit_bo->map + sizeof(header), &payload, sizeof(payload)); in igt_panfrost_trivial_job()
245 submit->args = malloc(sizeof(*submit->args)); in igt_panfrost_trivial_job()
246 memset(submit->args, 0, sizeof(*submit->args)); in igt_panfrost_trivial_job()
247 submit->args->jc = submit->submit_bo->offset; in igt_panfrost_trivial_job()
248 submit->args->requirements = PANFROST_JD_REQ_FS; in igt_panfrost_trivial_job()
251 bos[0] = submit->fbo->handle; in igt_panfrost_trivial_job()
252 bos[1] = submit->tiler_heap_bo->handle; in igt_panfrost_trivial_job()
253 bos[2] = submit->tiler_scratch_bo->handle; in igt_panfrost_trivial_job()
254 bos[3] = submit->scratchpad_bo->handle; in igt_panfrost_trivial_job()
255 bos[4] = submit->fb_bo->handle; in igt_panfrost_trivial_job()
256 bos[5] = submit->submit_bo->handle; in igt_panfrost_trivial_job()
258 submit->args->bo_handles = to_user_pointer(bos); in igt_panfrost_trivial_job()
259 submit->args->bo_handle_count = 6; in igt_panfrost_trivial_job()
261 … igt_assert_eq(drmSyncobjCreate(fd, DRM_SYNCOBJ_CREATE_SIGNALED, &submit->args->out_sync), 0); in igt_panfrost_trivial_job()
263 return submit; in igt_panfrost_trivial_job()
266 void igt_panfrost_free_job(int fd, struct panfrost_submit *submit) in igt_panfrost_free_job() argument
268 free(from_user_pointer(submit->args->bo_handles)); in igt_panfrost_free_job()
269 igt_panfrost_free_bo(fd, submit->submit_bo); in igt_panfrost_free_job()
270 igt_panfrost_free_bo(fd, submit->fb_bo); in igt_panfrost_free_job()
271 igt_panfrost_free_bo(fd, submit->scratchpad_bo); in igt_panfrost_free_job()
272 igt_panfrost_free_bo(fd, submit->tiler_scratch_bo); in igt_panfrost_free_job()
273 igt_panfrost_free_bo(fd, submit->tiler_heap_bo); in igt_panfrost_free_job()
274 igt_panfrost_free_bo(fd, submit->fbo); in igt_panfrost_free_job()
275 free(submit->args); in igt_panfrost_free_job()
276 free(submit); in igt_panfrost_free_job()