| /third_party/mesa3d/src/gallium/auxiliary/driver_ddebug/ |
| D | dd_context.c | 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 52 struct pipe_context *pipe = dd_context(_pipe)->pipe; in dd_context_create_query() local 55 query = pipe->create_query(pipe, query_type, index); in dd_context_create_query() 61 dd_query->type = query_type; in dd_context_create_query() 62 dd_query->query = query; in dd_context_create_query() 65 pipe->destroy_query(pipe, query); in dd_context_create_query() 77 struct pipe_context *pipe = dd_context(_pipe)->pipe; in dd_context_create_batch_query() local 80 query = pipe->create_batch_query(pipe, num_queries, query_types); in dd_context_create_batch_query() 87 dd_query->type = query_types[0]; in dd_context_create_batch_query() 88 dd_query->query = query; in dd_context_create_batch_query() [all …]
|
| /third_party/mesa3d/src/gallium/auxiliary/driver_trace/ |
| D | tr_context.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 33 #include "pipe/p_format.h" 34 #include "pipe/p_screen.h" 67 return trace_query(query)->query; in trace_query_unwrap() 83 assert(surface->texture); in trace_surface_unwrap() 84 if (!surface->texture) in trace_surface_unwrap() 89 assert(tr_surf->surface); in trace_surface_unwrap() 90 return tr_surf->surface; in trace_surface_unwrap() 98 struct pipe_context *pipe = tr_ctx->pipe; in dump_fb_state() local 99 struct pipe_framebuffer_state *state = &tr_ctx->unwrapped_state; in dump_fb_state() [all …]
|
| /third_party/mesa3d/src/gallium/auxiliary/driver_rbug/ |
| D | rbug_context.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 29 #include "pipe/p_context.h" 42 struct rbug_screen *rb_screen = rbug_screen(_pipe->screen); in rbug_destroy() 44 struct pipe_context *pipe = rb_pipe->pipe; in rbug_destroy() local 48 mtx_lock(&rb_pipe->call_mutex); in rbug_destroy() 49 pipe->destroy(pipe); in rbug_destroy() 50 rb_pipe->pipe = NULL; in rbug_destroy() 51 mtx_unlock(&rb_pipe->call_mutex); in rbug_destroy() 60 if (rb_pipe->draw_blocker & flag) { in rbug_draw_block_locked() 61 rb_pipe->draw_blocked |= flag; in rbug_draw_block_locked() [all …]
|
| /third_party/mesa3d/src/gallium/auxiliary/util/ |
| D | u_blitter.c | 19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 35 #include "pipe/p_context.h" 36 #include "pipe/p_defines.h" 38 #include "pipe/p_shader_tokens.h" 39 #include "pipe/p_state.h" 58 #define GET_MSAA_RESOLVE_FS_IDX(nr_samples) (util_logbase2(nr_samples)-1) 110 /* FS which is meant for replicating indevidual stencil-buffer bits */ 163 struct blitter_context *util_blitter_create(struct pipe_context *pipe) in util_blitter_create() argument 177 ctx->base.pipe = pipe; in util_blitter_create() 178 ctx->base.draw_rectangle = util_blitter_draw_rectangle; in util_blitter_create() [all …]
|
| D | u_threaded_context.c | 19 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 70 typedef uint16_t (*tc_execute)(struct pipe_context *pipe, void *call, uint64_t *last); 83 tc_assert(batch->sentinel == TC_SENTINEL); in tc_batch_check() 84 tc_assert(batch->num_total_slots <= TC_SLOTS_PER_BATCH); in tc_batch_check() 91 tc_batch_check(&tc->batch_slots[i]); in tc_debug_check() 92 tc_assert(tc->batch_slots[i].tc == tc); in tc_debug_check() 100 tc->driver_thread = util_get_thread_id(); in tc_set_driver_thread() 108 memset(&tc->driver_thread, 0, sizeof(tc->driver_thread)); in tc_clear_driver_thread() 117 tc_assert(call->num_slots == num_slots); in to_call_check() 126 sizeof(struct type) + sizeof(((struct type*)NULL)->slot[0]) * (num_slots)) [all …]
|
| /third_party/mesa3d/src/freedreno/drm/ |
| D | freedreno_pipe.c | 2 * Copyright (C) 2012-2018 Rob Clark <robclark@freedesktop.org> 37 struct fd_pipe *pipe; in fd_pipe_new2() local 41 ERROR_MSG("invalid pipe id: %d", id); in fd_pipe_new2() 50 pipe = dev->funcs->pipe_new(dev, id, prio); in fd_pipe_new2() 51 if (!pipe) { in fd_pipe_new2() 56 pipe->dev = fd_device_ref(dev); in fd_pipe_new2() 57 pipe->id = id; in fd_pipe_new2() 58 p_atomic_set(&pipe->refcnt, 1); in fd_pipe_new2() 60 fd_pipe_get_param(pipe, FD_GPU_ID, &val); in fd_pipe_new2() 61 pipe->dev_id.gpu_id = val; in fd_pipe_new2() [all …]
|
| /third_party/mesa3d/src/freedreno/drm/msm/ |
| D | msm_pipe.c | 2 * Copyright (C) 2012-2018 Rob Clark <robclark@freedesktop.org> 33 query_param(struct fd_pipe *pipe, uint32_t param, uint64_t *value) in query_param() argument 35 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in query_param() 37 .pipe = msm_pipe->pipe, in query_param() 43 drmCommandWriteRead(pipe->dev->fd, DRM_MSM_GET_PARAM, &req, sizeof(req)); in query_param() 53 query_queue_param(struct fd_pipe *pipe, uint32_t param, uint64_t *value) in query_queue_param() argument 55 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in query_queue_param() 58 .id = msm_pipe->queue_id, in query_queue_param() 64 ret = drmCommandWriteRead(pipe->dev->fd, DRM_MSM_SUBMITQUEUE_QUERY, &req, in query_queue_param() 73 msm_pipe_get_param(struct fd_pipe *pipe, enum fd_param_id param, in msm_pipe_get_param() argument [all …]
|
| /third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
| D | nvc0_state.c | 23 #include "pipe/p_defines.h" 90 nvc0_blend_state_create(struct pipe_context *pipe, in nvc0_blend_state_create() argument 101 so->pipe = *cso; in nvc0_blend_state_create() 104 if (cso->independent_blend_enable) { in nvc0_blend_state_create() 105 for (r = 0; r < 8 && !cso->rt[r].blend_enable; ++r); in nvc0_blend_state_create() 108 if (!cso->rt[i].blend_enable) in nvc0_blend_state_create() 111 if (cso->rt[i].rgb_func != cso->rt[r].rgb_func || in nvc0_blend_state_create() 112 cso->rt[i].rgb_src_factor != cso->rt[r].rgb_src_factor || in nvc0_blend_state_create() 113 cso->rt[i].rgb_dst_factor != cso->rt[r].rgb_dst_factor || in nvc0_blend_state_create() 114 cso->rt[i].alpha_func != cso->rt[r].alpha_func || in nvc0_blend_state_create() [all …]
|
| /third_party/mesa3d/src/gallium/auxiliary/vl/ |
| D | vl_matrix_filter.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 30 #include "pipe/p_context.h" 68 return ureg_create_shader_and_destroy(shader, filter->pipe); in create_vert_shader() 128 return ureg_create_shader_and_destroy(shader, filter->pipe); in create_frag_shader() 132 vl_matrix_filter_init(struct vl_matrix_filter *filter, struct pipe_context *pipe, in vl_matrix_filter_init() argument 144 assert(filter && pipe); in vl_matrix_filter_init() 149 filter->pipe = pipe; in vl_matrix_filter_init() 157 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_matrix_filter_init() 158 if (!filter->rs_state) in vl_matrix_filter_init() 170 filter->blend = pipe->create_blend_state(pipe, &blend); in vl_matrix_filter_init() [all …]
|
| D | vl_deint_filter.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 33 * Consumer Electronics, IEEE Transactions on, 49(4), 1256-1265. 35 * Pei-Yin, C. H. E. N., & Yao-Hsien, L. A. I. (2007). 36 * A low-complexity interpolation method for deinterlacing. 37 * IEICE transactions on information and systems, 90(2), 606-608. 43 #include "pipe/p_context.h" 83 return ureg_create_shader_and_destroy(shader, filter->pipe); in create_vert_shader() 119 return ureg_create_shader_and_destroy(shader, filter->pipe); in create_copy_frag_shader() 167 ureg_imm4f(shader, sizes->x * 0.5f, sizes->y * -0.5f, 0, 0)); in create_deint_frag_shader() 169 ureg_imm4f(shader, sizes->x * -0.5f, sizes->y * 0.5f, 1.0f, 0)); in create_deint_frag_shader() [all …]
|
| D | vl_mc.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 30 #include "pipe/p_context.h" 89 if (screen->get_param(screen, PIPE_CAP_FS_POSITION_IS_SYSVAL)) in calc_line() 123 (float)VL_MACROBLOCK_WIDTH / r->buffer_width, in create_ref_vert_shader() 124 (float)VL_MACROBLOCK_HEIGHT / r->buffer_height) in create_ref_vert_shader() 142 0.5f / r->buffer_width, in create_ref_vert_shader() 143 0.5f / r->buffer_height, in create_ref_vert_shader() 156 return ureg_create_shader_and_destroy(shader, r->pipe); in create_ref_vert_shader() 163 r->buffer_height / 2 * in create_ref_frag_shader() 164 r->macroblock_size / VL_MACROBLOCK_HEIGHT; in create_ref_frag_shader() [all …]
|
| D | vl_median_filter.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 28 #include "pipe/p_context.h" 66 return ureg_create_shader_and_destroy(shader, filter->pipe); in create_vert_shader() 80 struct pipe_screen *screen = filter->pipe->screen; in create_frag_shader() 95 if (num_offsets > screen->get_shader_param( in create_frag_shader() 142 for (j = 1; j < (num_offsets - i - 1); ++j) { in create_frag_shader() 145 ureg_MAX(shader, t_array[j], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader() 146 ureg_MIN(shader, t_array[j - 1], ureg_src(tmp), ureg_src(t_array[j - 1])); in create_frag_shader() 150 ureg_MAX(shader, t_array[j], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader() 152 ureg_MIN(shader, t_array[j - 1], ureg_src(t_array[j]), ureg_src(t_array[j - 1])); in create_frag_shader() [all …]
|
| D | vl_bicubic_filter.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 30 #include "pipe/p_context.h" 70 return ureg_create_shader_and_destroy(shader, filter->pipe); in create_vert_shader() 89 * |temp[1]| = | -1 0 1 0 |* |tex_b| in create_frag_shader_cubic_interpolater() 90 * |temp[2]| | 2 -5 4 -1 | |tex_c| in create_frag_shader_cubic_interpolater() 91 * |temp[3]| | -1 3 -3 1 | |tex_d| in create_frag_shader_cubic_interpolater() 95 ureg_MUL(shader, temp[1], tex_a, ureg_imm1f(shader, -1.0f)); in create_frag_shader_cubic_interpolater() 100 ureg_MAD(shader, temp[2], tex_b, ureg_imm1f(shader, -5.0f), in create_frag_shader_cubic_interpolater() 104 ureg_MAD(shader, temp[2], tex_d, ureg_imm1f(shader, -1.0f), in create_frag_shader_cubic_interpolater() 107 ureg_MUL(shader, temp[3], tex_a, ureg_imm1f(shader, -1.0f)); in create_frag_shader_cubic_interpolater() [all …]
|
| D | vl_zscan.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 30 #include "pipe/p_screen.h" 31 #include "pipe/p_context.h" 54 /* Zig-Zag scan pattern */ 74 /* Zig-Zag scan pattern */ 100 /* Up-right diagonal scan order for 4x4 blocks - see H.265 section 6.5.3. */ 107 /* Up-right diagonal scan order for 8x8 blocks - see H.265 section 6.5.3. */ 134 o_vtex = MALLOC(zscan->num_channels * sizeof(struct ureg_dst)); in create_vert_shader() 137 (float)VL_BLOCK_WIDTH / zscan->buffer_width, in create_vert_shader() 138 (float)VL_BLOCK_HEIGHT / zscan->buffer_height); in create_vert_shader() [all …]
|
| /third_party/node/src/ |
| D | stream_pipe.cc | 2 #include "stream_base-inl.h" 4 #include "util-inl.h" 25 : AsyncWrap(source->stream_env(), obj, AsyncWrap::PROVIDER_STREAMPIPE) { in StreamPipe() 31 source->PushStreamListener(&readable_listener_); in StreamPipe() 32 sink->PushStreamListener(&writable_listener_); in StreamPipe() 34 uses_wants_write_ = sink->HasWantsWrite(); in StreamPipe() 57 source()->ReadStop(); in Unpipe() 61 source()->RemoveStreamListener(&readable_listener_); in Unpipe() 63 sink()->RemoveStreamListener(&writable_listener_); in Unpipe() 67 // Delay the JS-facing part with SetImmediate, because this might be from in Unpipe() [all …]
|
| /third_party/mesa3d/src/gallium/frontends/clover/core/ |
| D | resource.cpp | 25 #include "pipe/p_screen.h" 37 pipe({ (int)origin[0], (int16_t)origin[1], in box() 43 return &pipe; in operator const pipe_box*() 47 pipe_box pipe; member in __anon22e39d6e0111::box 52 device(dev), obj(obj), pipe(NULL), offset() { in resource() 63 q.pipe->resource_copy_region(q.pipe, pipe, 0, p[0], p[1], p[2], in copy() 64 src_res.pipe, 0, in copy() 73 if (pipe->target == PIPE_BUFFER) { in clear() 74 q.pipe->clear_buffer(q.pipe, pipe, from[0], region[0], data.data(), data.size()); in clear() 77 texture_data.reserve(util_format_get_blocksize(pipe->format)); in clear() [all …]
|
| /third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
| D | nv50_state.c | 23 #include "pipe/p_defines.h" 43 * ! pipe_sampler_state.normalized_coords is ignored - rectangle textures will 44 * use non-normalized coordinates, everything else won't 47 * ! pipe_sampler_state.seamless_cube_map is ignored - seamless filtering is 58 * ! pipe_rasterizer_state.line_last_pixel is ignored - it is never drawn 117 nv50_blend_state_create(struct pipe_context *pipe, in nv50_blend_state_create() argument 122 bool emit_common_func = cso->rt[0].blend_enable; in nv50_blend_state_create() 125 if (nv50_context(pipe)->screen->tesla->oclass >= NVA3_3D_CLASS) { in nv50_blend_state_create() 127 SB_DATA (so, cso->independent_blend_enable); in nv50_blend_state_create() 130 so->pipe = *cso; in nv50_blend_state_create() [all …]
|
| /third_party/libdrm/freedreno/msm/ |
| D | msm_pipe.c | 1 /* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */ 31 static int query_param(struct fd_pipe *pipe, uint32_t param, in query_param() argument 34 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in query_param() 36 .pipe = msm_pipe->pipe, in query_param() 41 ret = drmCommandWriteRead(pipe->dev->fd, DRM_MSM_GET_PARAM, in query_param() 51 static int msm_pipe_get_param(struct fd_pipe *pipe, in msm_pipe_get_param() argument 54 struct msm_pipe *msm_pipe = to_msm_pipe(pipe); in msm_pipe_get_param() 58 *value = msm_pipe->gpu_id; in msm_pipe_get_param() 61 *value = msm_pipe->gmem; in msm_pipe_get_param() 64 *value = msm_pipe->chip_id; in msm_pipe_get_param() [all …]
|
| /third_party/mesa3d/src/gallium/auxiliary/cso_cache/ |
| D | cso_context.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 32 * pipe-driver-specific interface. 38 #include "pipe/p_state.h" 55 * Per-shader sampler information. 66 struct pipe_context *pipe; member 99 * The saved state is used as a 1-deep stack. 128 return cso->pipe; in cso_get_pipe_context() 136 if (ctx->blend == ((struct cso_blend*)state)->data) in delete_cso() 140 if (ctx->depth_stencil == ((struct cso_depth_stencil_alpha*)state)->data) in delete_cso() 144 if (ctx->rasterizer == ((struct cso_rasterizer*)state)->data) in delete_cso() [all …]
|
| /third_party/mesa3d/src/gallium/auxiliary/draw/ |
| D | draw_pipe_pstipple.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 32 * stipple-failing fragments. 38 #include "pipe/p_context.h" 39 #include "pipe/p_defines.h" 40 #include "pipe/p_shader_tokens.h" 118 struct pipe_context *pipe; member 129 struct pipe_context *pipe = pstip->pipe; in generate_pstip_fs() local 130 struct pipe_screen *screen = pipe->screen; in generate_pstip_fs() 131 const struct pipe_shader_state *orig_fs = &pstip->fs->state; in generate_pstip_fs() 132 /*struct draw_context *draw = pstip->stage.draw;*/ in generate_pstip_fs() [all …]
|
| /third_party/mesa3d/src/freedreno/drm/virtio/ |
| D | virtio_pipe.c | 30 query_param(struct fd_pipe *pipe, uint32_t param, uint64_t *value) in query_param() argument 32 struct virtio_pipe *virtio_pipe = to_virtio_pipe(pipe); in query_param() 34 .pipe = virtio_pipe->pipe, in query_param() 39 ret = virtio_simple_ioctl(pipe->dev, DRM_IOCTL_MSM_GET_PARAM, &req); in query_param() 49 query_queue_param(struct fd_pipe *pipe, uint32_t param, uint64_t *value) in query_queue_param() argument 53 .queue_id = to_virtio_pipe(pipe)->queue_id, in query_queue_param() 60 rsp = virtio_alloc_rsp(pipe->dev, &req.hdr, rsp_len); in query_queue_param() 62 int ret = virtio_execbuf(pipe->dev, &req.hdr, true); in query_queue_param() 66 memcpy(value, rsp->payload, req.len); in query_queue_param() 68 ret = rsp->ret; in query_queue_param() [all …]
|
| /third_party/mesa3d/src/gallium/drivers/softpipe/ |
| D | sp_context.c | 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 35 #include "pipe/p_defines.h" 57 softpipe_destroy( struct pipe_context *pipe ) in softpipe_destroy() argument 59 struct softpipe_context *softpipe = softpipe_context( pipe ); in softpipe_destroy() 62 if (softpipe->blitter) { in softpipe_destroy() 63 util_blitter_destroy(softpipe->blitter); in softpipe_destroy() 66 if (softpipe->draw) in softpipe_destroy() 67 draw_destroy( softpipe->draw ); in softpipe_destroy() 69 if (softpipe->quad.shade) in softpipe_destroy() 70 softpipe->quad.shade->destroy( softpipe->quad.shade ); in softpipe_destroy() [all …]
|
| D | sp_state_shader.c | 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 36 #include "pipe/p_defines.h" 59 struct pipe_shader_state *curfs = &fs->shader; in create_fs_variant() 65 var->key = *key; in create_fs_variant() 67 var->tokens = tgsi_dup_tokens(curfs->tokens); in create_fs_variant() 69 tgsi_scan_shader(var->tokens, &var->info); in create_fs_variant() 74 var->draw_shader = draw_create_fragment_shader(softpipe->draw, in create_fs_variant() 75 &fs->shader); in create_fs_variant() 76 if (!var->draw_shader) { in create_fs_variant() 77 var->delete(var); in create_fs_variant() [all …]
|
| /third_party/libdrm/freedreno/ |
| D | freedreno_pipe.c | 1 /* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */ 39 struct fd_pipe *pipe; in fd_pipe_new2() local 43 ERROR_MSG("invalid pipe id: %d", id); in fd_pipe_new2() 52 pipe = dev->funcs->pipe_new(dev, id, prio); in fd_pipe_new2() 53 if (!pipe) { in fd_pipe_new2() 58 pipe->dev = dev; in fd_pipe_new2() 59 pipe->id = id; in fd_pipe_new2() 60 atomic_set(&pipe->refcnt, 1); in fd_pipe_new2() 62 fd_pipe_get_param(pipe, FD_GPU_ID, &val); in fd_pipe_new2() 63 pipe->gpu_id = val; in fd_pipe_new2() [all …]
|
| /third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
| D | lp_context.c | 21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 35 #include "pipe/p_defines.h" 57 static void llvmpipe_destroy( struct pipe_context *pipe ) in llvmpipe_destroy() argument 59 struct llvmpipe_context *llvmpipe = llvmpipe_context( pipe ); in llvmpipe_destroy() 60 struct llvmpipe_screen *lp_screen = llvmpipe_screen(pipe->screen); in llvmpipe_destroy() 63 mtx_lock(&lp_screen->ctx_mutex); in llvmpipe_destroy() 64 list_del(&llvmpipe->list); in llvmpipe_destroy() 65 mtx_unlock(&lp_screen->ctx_mutex); in llvmpipe_destroy() 68 if (llvmpipe->csctx) { in llvmpipe_destroy() 69 lp_csctx_destroy(llvmpipe->csctx); in llvmpipe_destroy() [all …]
|