• Home
  • Raw
  • Download

Lines Matching refs:get_buf_entry

52 static inline uint32_t get_buf_entry(const uint32_t *buf, uint32_t offset)  in get_buf_entry()  function
78 type = get_buf_entry(buf, VIRGL_OBJ_SHADER_TYPE); in vrend_decode_create_shader()
79 num_tokens = get_buf_entry(buf, VIRGL_OBJ_SHADER_NUM_TOKENS); in vrend_decode_create_shader()
80 offlen = get_buf_entry(buf, VIRGL_OBJ_SHADER_OFFSET); in vrend_decode_create_shader()
83 req_local_mem = get_buf_entry(buf, VIRGL_OBJ_SHADER_SO_NUM_OUTPUTS); in vrend_decode_create_shader()
86 num_so_outputs = get_buf_entry(buf, VIRGL_OBJ_SHADER_SO_NUM_OUTPUTS); in vrend_decode_create_shader()
99 so_info.stride[i] = get_buf_entry(buf, VIRGL_OBJ_SHADER_SO_STRIDE(i)); in vrend_decode_create_shader()
101 uint32_t tmp = get_buf_entry(buf, VIRGL_OBJ_SHADER_SO_OUTPUT0(i)); in vrend_decode_create_shader()
108 tmp = get_buf_entry(buf, VIRGL_OBJ_SHADER_SO_OUTPUT0_SO(i)); in vrend_decode_create_shader()
138 res_handle = get_buf_entry(buf, VIRGL_OBJ_STREAMOUT_RES_HANDLE); in vrend_decode_create_stream_output_target()
139 buffer_offset = get_buf_entry(buf, VIRGL_OBJ_STREAMOUT_BUFFER_OFFSET); in vrend_decode_create_stream_output_target()
140 buffer_size = get_buf_entry(buf, VIRGL_OBJ_STREAMOUT_BUFFER_SIZE); in vrend_decode_create_stream_output_target()
151 uint32_t nr_cbufs = get_buf_entry(buf, VIRGL_SET_FRAMEBUFFER_STATE_NR_CBUFS); in vrend_decode_set_framebuffer_state()
152 uint32_t zsurf_handle = get_buf_entry(buf, VIRGL_SET_FRAMEBUFFER_STATE_NR_ZSURF_HANDLE); in vrend_decode_set_framebuffer_state()
163 surf_handle[i] = get_buf_entry(buf, VIRGL_SET_FRAMEBUFFER_STATE_CBUF_HANDLE(i)); in vrend_decode_set_framebuffer_state()
177 tmp = get_buf_entry(buf, VIRGL_SET_FRAMEBUFFER_STATE_NO_ATTACH_WIDTH_HEIGHT); in vrend_decode_set_framebuffer_state_no_attach()
181 tmp = get_buf_entry(buf, VIRGL_SET_FRAMEBUFFER_STATE_NO_ATTACH_LAYERS_SAMPLES); in vrend_decode_set_framebuffer_state_no_attach()
198 buffers = get_buf_entry(buf, VIRGL_OBJ_CLEAR_BUFFERS); in vrend_decode_clear()
200 color.ui[i] = get_buf_entry(buf, VIRGL_OBJ_CLEAR_COLOR_0 + i); in vrend_decode_clear()
203 stencil = get_buf_entry(buf, VIRGL_OBJ_CLEAR_STENCIL); in vrend_decode_clear()
219 handle = get_buf_entry(buf, VIRGL_TEXTURE_HANDLE); in vrend_decode_clear_texture()
220 level = get_buf_entry(buf, VIRGL_TEXTURE_LEVEL); in vrend_decode_clear_texture()
221 box.x = get_buf_entry(buf, VIRGL_TEXTURE_SRC_X); in vrend_decode_clear_texture()
222 box.y = get_buf_entry(buf, VIRGL_TEXTURE_SRC_Y); in vrend_decode_clear_texture()
223 box.z = get_buf_entry(buf, VIRGL_TEXTURE_SRC_Z); in vrend_decode_clear_texture()
224 box.width = get_buf_entry(buf, VIRGL_TEXTURE_SRC_W); in vrend_decode_clear_texture()
225 box.height = get_buf_entry(buf, VIRGL_TEXTURE_SRC_H); in vrend_decode_clear_texture()
226 box.depth = get_buf_entry(buf, VIRGL_TEXTURE_SRC_D); in vrend_decode_clear_texture()
227 arr[0] = get_buf_entry(buf, VIRGL_TEXTURE_ARRAY_A); in vrend_decode_clear_texture()
228 arr[1] = get_buf_entry(buf, VIRGL_TEXTURE_ARRAY_B); in vrend_decode_clear_texture()
229 arr[2] = get_buf_entry(buf, VIRGL_TEXTURE_ARRAY_C); in vrend_decode_clear_texture()
230 arr[3] = get_buf_entry(buf, VIRGL_TEXTURE_ARRAY_D); in vrend_decode_clear_texture()
255 start_slot = get_buf_entry(buf, VIRGL_SET_VIEWPORT_START_SLOT); in vrend_decode_set_viewport_state()
263 vps[v].scale[i] = uif(get_buf_entry(buf, VIRGL_SET_VIEWPORT_STATE_SCALE_0(v) + i)); in vrend_decode_set_viewport_state()
265 vps[v].translate[i] = uif(get_buf_entry(buf, VIRGL_SET_VIEWPORT_STATE_TRANSLATE_0(v) + i)); in vrend_decode_set_viewport_state()
277 get_buf_entry(buf, VIRGL_SET_INDEX_BUFFER_HANDLE), in vrend_decode_set_index_buffer()
278 (length == 3) ? get_buf_entry(buf, VIRGL_SET_INDEX_BUFFER_INDEX_SIZE) : 0, in vrend_decode_set_index_buffer()
279 (length == 3) ? get_buf_entry(buf, VIRGL_SET_INDEX_BUFFER_OFFSET) : 0); in vrend_decode_set_index_buffer()
291 shader = get_buf_entry(buf, VIRGL_SET_CONSTANT_BUFFER_SHADER_TYPE); in vrend_decode_set_constant_buffer()
306 uint32_t shader = get_buf_entry(buf, VIRGL_SET_UNIFORM_BUFFER_SHADER_TYPE); in vrend_decode_set_uniform_buffer()
307 uint32_t index = get_buf_entry(buf, VIRGL_SET_UNIFORM_BUFFER_INDEX); in vrend_decode_set_uniform_buffer()
308 uint32_t offset = get_buf_entry(buf, VIRGL_SET_UNIFORM_BUFFER_OFFSET); in vrend_decode_set_uniform_buffer()
309 uint32_t blength = get_buf_entry(buf, VIRGL_SET_UNIFORM_BUFFER_LENGTH); in vrend_decode_set_uniform_buffer()
310 uint32_t handle = get_buf_entry(buf, VIRGL_SET_UNIFORM_BUFFER_RES_HANDLE); in vrend_decode_set_uniform_buffer()
337 get_buf_entry(buf, VIRGL_SET_VERTEX_BUFFER_STRIDE(i)), in vrend_decode_set_vertex_buffers()
338 get_buf_entry(buf, VIRGL_SET_VERTEX_BUFFER_OFFSET(i)), in vrend_decode_set_vertex_buffers()
339 get_buf_entry(buf, VIRGL_SET_VERTEX_BUFFER_HANDLE(i))); in vrend_decode_set_vertex_buffers()
355 shader_type = get_buf_entry(buf, VIRGL_SET_SAMPLER_VIEWS_SHADER_TYPE); in vrend_decode_set_sampler_views()
356 start_slot = get_buf_entry(buf, VIRGL_SET_SAMPLER_VIEWS_START_SLOT); in vrend_decode_set_sampler_views()
366 uint32_t handle = get_buf_entry(buf, VIRGL_SET_SAMPLER_VIEWS_V0_HANDLE + i); in vrend_decode_set_sampler_views()
377 *dst_handle = get_buf_entry(buf, VIRGL_RESOURCE_IW_RES_HANDLE); in vrend_decode_transfer_common()
379 info->level = get_buf_entry(buf, VIRGL_RESOURCE_IW_LEVEL); in vrend_decode_transfer_common()
380 info->stride = get_buf_entry(buf, VIRGL_RESOURCE_IW_STRIDE); in vrend_decode_transfer_common()
381 info->layer_stride = get_buf_entry(buf, VIRGL_RESOURCE_IW_LAYER_STRIDE); in vrend_decode_transfer_common()
382 info->box->x = get_buf_entry(buf, VIRGL_RESOURCE_IW_X); in vrend_decode_transfer_common()
383 info->box->y = get_buf_entry(buf, VIRGL_RESOURCE_IW_Y); in vrend_decode_transfer_common()
384 info->box->z = get_buf_entry(buf, VIRGL_RESOURCE_IW_Z); in vrend_decode_transfer_common()
385 info->box->width = get_buf_entry(buf, VIRGL_RESOURCE_IW_W); in vrend_decode_transfer_common()
386 info->box->height = get_buf_entry(buf, VIRGL_RESOURCE_IW_H); in vrend_decode_transfer_common()
387 info->box->depth = get_buf_entry(buf, VIRGL_RESOURCE_IW_D); in vrend_decode_transfer_common()
429 info.start = get_buf_entry(buf, VIRGL_DRAW_VBO_START); in vrend_decode_draw_vbo()
430 info.count = get_buf_entry(buf, VIRGL_DRAW_VBO_COUNT); in vrend_decode_draw_vbo()
431 info.mode = get_buf_entry(buf, VIRGL_DRAW_VBO_MODE); in vrend_decode_draw_vbo()
432 info.indexed = !!get_buf_entry(buf, VIRGL_DRAW_VBO_INDEXED); in vrend_decode_draw_vbo()
433 info.instance_count = get_buf_entry(buf, VIRGL_DRAW_VBO_INSTANCE_COUNT); in vrend_decode_draw_vbo()
434 info.index_bias = get_buf_entry(buf, VIRGL_DRAW_VBO_INDEX_BIAS); in vrend_decode_draw_vbo()
435 info.start_instance = get_buf_entry(buf, VIRGL_DRAW_VBO_START_INSTANCE); in vrend_decode_draw_vbo()
436 info.primitive_restart = !!get_buf_entry(buf, VIRGL_DRAW_VBO_PRIMITIVE_RESTART); in vrend_decode_draw_vbo()
437 info.restart_index = get_buf_entry(buf, VIRGL_DRAW_VBO_RESTART_INDEX); in vrend_decode_draw_vbo()
438 info.min_index = get_buf_entry(buf, VIRGL_DRAW_VBO_MIN_INDEX); in vrend_decode_draw_vbo()
439 info.max_index = get_buf_entry(buf, VIRGL_DRAW_VBO_MAX_INDEX); in vrend_decode_draw_vbo()
442 info.vertices_per_patch = get_buf_entry(buf, VIRGL_DRAW_VBO_VERTICES_PER_PATCH); in vrend_decode_draw_vbo()
443 info.drawid = get_buf_entry(buf, VIRGL_DRAW_VBO_DRAWID); in vrend_decode_draw_vbo()
447 handle = get_buf_entry(buf, VIRGL_DRAW_VBO_INDIRECT_HANDLE); in vrend_decode_draw_vbo()
448 info.indirect.offset = get_buf_entry(buf, VIRGL_DRAW_VBO_INDIRECT_OFFSET); in vrend_decode_draw_vbo()
449 info.indirect.stride = get_buf_entry(buf, VIRGL_DRAW_VBO_INDIRECT_STRIDE); in vrend_decode_draw_vbo()
450 info.indirect.draw_count = get_buf_entry(buf, VIRGL_DRAW_VBO_INDIRECT_DRAW_COUNT); in vrend_decode_draw_vbo()
451 …info.indirect.indirect_draw_count_offset = get_buf_entry(buf, VIRGL_DRAW_VBO_INDIRECT_DRAW_COUNT_O… in vrend_decode_draw_vbo()
452 indirect_draw_count_handle = get_buf_entry(buf, VIRGL_DRAW_VBO_INDIRECT_DRAW_COUNT_HANDLE); in vrend_decode_draw_vbo()
455 cso = get_buf_entry(buf, VIRGL_DRAW_VBO_COUNT_FROM_SO); in vrend_decode_draw_vbo()
474 tmp = get_buf_entry(buf, VIRGL_OBJ_BLEND_S0); in vrend_decode_create_blend()
481 tmp = get_buf_entry(buf, VIRGL_OBJ_BLEND_S1); in vrend_decode_create_blend()
485 tmp = get_buf_entry(buf, VIRGL_OBJ_BLEND_S2(i)); in vrend_decode_create_blend()
518 tmp = get_buf_entry(buf, VIRGL_OBJ_DSA_S0); in vrend_decode_create_dsa()
527 tmp = get_buf_entry(buf, VIRGL_OBJ_DSA_S1 + i); in vrend_decode_create_dsa()
537 tmp = get_buf_entry(buf, VIRGL_OBJ_DSA_ALPHA_REF); in vrend_decode_create_dsa()
561 tmp = get_buf_entry(buf, VIRGL_OBJ_RS_S0); in vrend_decode_create_rasterizer()
594 rs_state->point_size = uif(get_buf_entry(buf, VIRGL_OBJ_RS_POINT_SIZE)); in vrend_decode_create_rasterizer()
595 rs_state->sprite_coord_enable = get_buf_entry(buf, VIRGL_OBJ_RS_SPRITE_COORD_ENABLE); in vrend_decode_create_rasterizer()
596 tmp = get_buf_entry(buf, VIRGL_OBJ_RS_S3); in vrend_decode_create_rasterizer()
601 rs_state->line_width = uif(get_buf_entry(buf, VIRGL_OBJ_RS_LINE_WIDTH)); in vrend_decode_create_rasterizer()
602 rs_state->offset_units = uif(get_buf_entry(buf, VIRGL_OBJ_RS_OFFSET_UNITS)); in vrend_decode_create_rasterizer()
603 rs_state->offset_scale = uif(get_buf_entry(buf, VIRGL_OBJ_RS_OFFSET_SCALE)); in vrend_decode_create_rasterizer()
604 rs_state->offset_clamp = uif(get_buf_entry(buf, VIRGL_OBJ_RS_OFFSET_CLAMP)); in vrend_decode_create_rasterizer()
623 res_handle = get_buf_entry(buf, VIRGL_OBJ_SURFACE_RES_HANDLE); in vrend_decode_create_surface()
624 format = get_buf_entry(buf, VIRGL_OBJ_SURFACE_FORMAT); in vrend_decode_create_surface()
626 val0 = get_buf_entry(buf, VIRGL_OBJ_SURFACE_BUFFER_FIRST_ELEMENT); in vrend_decode_create_surface()
627 val1 = get_buf_entry(buf, VIRGL_OBJ_SURFACE_BUFFER_LAST_ELEMENT); in vrend_decode_create_surface()
639 res_handle = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_VIEW_RES_HANDLE); in vrend_decode_create_sampler_view()
640 format = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_VIEW_FORMAT); in vrend_decode_create_sampler_view()
641 val0 = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_VIEW_BUFFER_FIRST_ELEMENT); in vrend_decode_create_sampler_view()
642 val1 = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_VIEW_BUFFER_LAST_ELEMENT); in vrend_decode_create_sampler_view()
643 swizzle_packed = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_VIEW_SWIZZLE); in vrend_decode_create_sampler_view()
655 tmp = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_STATE_S0); in vrend_decode_create_sampler_state()
666 state.lod_bias = uif(get_buf_entry(buf, VIRGL_OBJ_SAMPLER_STATE_LOD_BIAS)); in vrend_decode_create_sampler_state()
667 state.min_lod = uif(get_buf_entry(buf, VIRGL_OBJ_SAMPLER_STATE_MIN_LOD)); in vrend_decode_create_sampler_state()
668 state.max_lod = uif(get_buf_entry(buf, VIRGL_OBJ_SAMPLER_STATE_MAX_LOD)); in vrend_decode_create_sampler_state()
671 state.border_color.ui[i] = get_buf_entry(buf, VIRGL_OBJ_SAMPLER_STATE_BORDER_COLOR(i)); in vrend_decode_create_sampler_state()
703 ve[i].src_offset = get_buf_entry(buf, VIRGL_OBJ_VERTEX_ELEMENTS_V0_SRC_OFFSET(i)); in vrend_decode_create_ve()
704 … ve[i].instance_divisor = get_buf_entry(buf, VIRGL_OBJ_VERTEX_ELEMENTS_V0_INSTANCE_DIVISOR(i)); in vrend_decode_create_ve()
705 …ve[i].vertex_buffer_index = get_buf_entry(buf, VIRGL_OBJ_VERTEX_ELEMENTS_V0_VERTEX_BUFFER_INDEX(i)… in vrend_decode_create_ve()
712 ve[i].src_format = get_buf_entry(buf, VIRGL_OBJ_VERTEX_ELEMENTS_V0_SRC_FORMAT(i)); in vrend_decode_create_ve()
733 tmp = get_buf_entry(buf, VIRGL_OBJ_QUERY_TYPE_INDEX); in vrend_decode_create_query()
737 offset = get_buf_entry(buf, VIRGL_OBJ_QUERY_OFFSET); in vrend_decode_create_query()
738 res_handle = get_buf_entry(buf, VIRGL_OBJ_QUERY_RES_HANDLE); in vrend_decode_create_query()
748 uint32_t header = get_buf_entry(buf, VIRGL_OBJ_CREATE_HEADER); in vrend_decode_create_object()
749 uint32_t handle = get_buf_entry(buf, VIRGL_OBJ_CREATE_HANDLE); in vrend_decode_create_object()
804 uint32_t header = get_buf_entry(buf, VIRGL_OBJ_BIND_HEADER); in vrend_decode_bind_object()
805 uint32_t handle = get_buf_entry(buf, VIRGL_OBJ_BIND_HANDLE); in vrend_decode_bind_object()
837 uint32_t handle = get_buf_entry(buf, VIRGL_OBJ_DESTROY_HANDLE); in vrend_decode_destroy_object()
840 uint32_t obj = (get_buf_entry(buf, 0) >> 8) & 0xFF; in vrend_decode_destroy_object()
854 uint32_t val = get_buf_entry(buf, VIRGL_SET_STENCIL_REF); in vrend_decode_set_stencil_ref()
871 color.color[i] = uif(get_buf_entry(buf, VIRGL_SET_BLEND_COLOR(i))); in vrend_decode_set_blend_color()
894 start_slot = get_buf_entry(buf, VIRGL_SET_SCISSOR_START_SLOT); in vrend_decode_set_scissor_state()
897 temp = get_buf_entry(buf, VIRGL_SET_SCISSOR_MINX_MINY(s)); in vrend_decode_set_scissor_state()
901 temp = get_buf_entry(buf, VIRGL_SET_SCISSOR_MAXX_MAXY(s)); in vrend_decode_set_scissor_state()
919 ps.stipple[i] = get_buf_entry(buf, VIRGL_POLYGON_STIPPLE_P0 + i); in vrend_decode_set_polygon_stipple()
935 clip.ucp[i][j] = uif(get_buf_entry(buf, VIRGL_SET_CLIP_STATE_C0 + (i * 4) + j)); in vrend_decode_set_clip_state()
946 mask = get_buf_entry(buf, VIRGL_SET_SAMPLE_MASK_MASK); in vrend_decode_set_sample_mask()
957 min_samples = get_buf_entry(buf, VIRGL_SET_MIN_SAMPLES_MASK); in vrend_decode_set_min_samples()
972 dst_handle = get_buf_entry(buf, VIRGL_CMD_RCR_DST_RES_HANDLE); in vrend_decode_resource_copy_region()
973 dst_level = get_buf_entry(buf, VIRGL_CMD_RCR_DST_LEVEL); in vrend_decode_resource_copy_region()
974 dstx = get_buf_entry(buf, VIRGL_CMD_RCR_DST_X); in vrend_decode_resource_copy_region()
975 dsty = get_buf_entry(buf, VIRGL_CMD_RCR_DST_Y); in vrend_decode_resource_copy_region()
976 dstz = get_buf_entry(buf, VIRGL_CMD_RCR_DST_Z); in vrend_decode_resource_copy_region()
977 src_handle = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_RES_HANDLE); in vrend_decode_resource_copy_region()
978 src_level = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_LEVEL); in vrend_decode_resource_copy_region()
979 box.x = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_X); in vrend_decode_resource_copy_region()
980 box.y = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_Y); in vrend_decode_resource_copy_region()
981 box.z = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_Z); in vrend_decode_resource_copy_region()
982 box.width = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_W); in vrend_decode_resource_copy_region()
983 box.height = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_H); in vrend_decode_resource_copy_region()
984 box.depth = get_buf_entry(buf, VIRGL_CMD_RCR_SRC_D); in vrend_decode_resource_copy_region()
1001 temp = get_buf_entry(buf, VIRGL_CMD_BLIT_S0); in vrend_decode_blit()
1007 temp = get_buf_entry(buf, VIRGL_CMD_BLIT_SCISSOR_MINX_MINY); in vrend_decode_blit()
1010 temp = get_buf_entry(buf, VIRGL_CMD_BLIT_SCISSOR_MAXX_MAXY); in vrend_decode_blit()
1013 dst_handle = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_RES_HANDLE); in vrend_decode_blit()
1014 info.dst.level = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_LEVEL); in vrend_decode_blit()
1015 info.dst.format = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_FORMAT); in vrend_decode_blit()
1016 info.dst.box.x = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_X); in vrend_decode_blit()
1017 info.dst.box.y = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_Y); in vrend_decode_blit()
1018 info.dst.box.z = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_Z); in vrend_decode_blit()
1019 info.dst.box.width = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_W); in vrend_decode_blit()
1020 info.dst.box.height = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_H); in vrend_decode_blit()
1021 info.dst.box.depth = get_buf_entry(buf, VIRGL_CMD_BLIT_DST_D); in vrend_decode_blit()
1023 src_handle = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_RES_HANDLE); in vrend_decode_blit()
1024 info.src.level = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_LEVEL); in vrend_decode_blit()
1025 info.src.format = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_FORMAT); in vrend_decode_blit()
1026 info.src.box.x = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_X); in vrend_decode_blit()
1027 info.src.box.y = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_Y); in vrend_decode_blit()
1028 info.src.box.z = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_Z); in vrend_decode_blit()
1029 info.src.box.width = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_W); in vrend_decode_blit()
1030 info.src.box.height = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_H); in vrend_decode_blit()
1031 info.src.box.depth = get_buf_entry(buf, VIRGL_CMD_BLIT_SRC_D); in vrend_decode_blit()
1042 uint32_t shader_type = get_buf_entry(buf, VIRGL_BIND_SAMPLER_STATES_SHADER_TYPE); in vrend_decode_bind_sampler_states()
1043 uint32_t start_slot = get_buf_entry(buf, VIRGL_BIND_SAMPLER_STATES_START_SLOT); in vrend_decode_bind_sampler_states()
1059 uint32_t handle = get_buf_entry(buf, VIRGL_QUERY_BEGIN_HANDLE); in vrend_decode_begin_query()
1069 uint32_t handle = get_buf_entry(buf, VIRGL_QUERY_END_HANDLE); in vrend_decode_end_query()
1079 uint32_t handle = get_buf_entry(buf, VIRGL_QUERY_RESULT_HANDLE); in vrend_decode_get_query_result()
1080 uint32_t wait = get_buf_entry(buf, VIRGL_QUERY_RESULT_WAIT); in vrend_decode_get_query_result()
1091 uint32_t handle = get_buf_entry(buf, VIRGL_QUERY_RESULT_QBO_HANDLE); in vrend_decode_get_query_result_qbo()
1092 uint32_t qbo_handle = get_buf_entry(buf, VIRGL_QUERY_RESULT_QBO_QBO_HANDLE); in vrend_decode_get_query_result_qbo()
1093 uint32_t wait = get_buf_entry(buf, VIRGL_QUERY_RESULT_QBO_WAIT); in vrend_decode_get_query_result_qbo()
1094 uint32_t result_type = get_buf_entry(buf, VIRGL_QUERY_RESULT_QBO_RESULT_TYPE); in vrend_decode_get_query_result_qbo()
1095 uint32_t offset = get_buf_entry(buf, VIRGL_QUERY_RESULT_QBO_OFFSET); in vrend_decode_get_query_result_qbo()
1096 int32_t index = get_buf_entry(buf, VIRGL_QUERY_RESULT_QBO_INDEX); in vrend_decode_get_query_result_qbo()
1107 uint32_t handle = get_buf_entry(buf, VIRGL_RENDER_CONDITION_HANDLE); in vrend_decode_set_render_condition()
1108 bool condition = get_buf_entry(buf, VIRGL_RENDER_CONDITION_CONDITION) & 1; in vrend_decode_set_render_condition()
1109 uint mode = get_buf_entry(buf, VIRGL_RENDER_CONDITION_MODE); in vrend_decode_set_render_condition()
1120 uint32_t ctx_sub_id = get_buf_entry(buf, 1); in vrend_decode_set_sub_ctx()
1131 uint32_t ctx_sub_id = get_buf_entry(buf, 1); in vrend_decode_create_sub_ctx()
1142 uint32_t ctx_sub_id = get_buf_entry(buf, 1); in vrend_decode_destroy_sub_ctx()
1154 handle = get_buf_entry(buf, VIRGL_BIND_SHADER_HANDLE); in vrend_decode_bind_shader()
1155 type = get_buf_entry(buf, VIRGL_BIND_SHADER_TYPE); in vrend_decode_bind_shader()
1171 tess_factors[i] = uif(get_buf_entry(buf, i + 1)); in vrend_decode_set_tess_state()
1186 shader_type = get_buf_entry(buf, VIRGL_SET_SHADER_BUFFER_SHADER_TYPE); in vrend_decode_set_shader_buffers()
1187 start_slot = get_buf_entry(buf, VIRGL_SET_SHADER_BUFFER_START_SLOT); in vrend_decode_set_shader_buffers()
1199 uint32_t offset = get_buf_entry(buf, VIRGL_SET_SHADER_BUFFER_OFFSET(i)); in vrend_decode_set_shader_buffers()
1200 uint32_t buf_len = get_buf_entry(buf, VIRGL_SET_SHADER_BUFFER_LENGTH(i)); in vrend_decode_set_shader_buffers()
1201 uint32_t handle = get_buf_entry(buf, VIRGL_SET_SHADER_BUFFER_RES_HANDLE(i)); in vrend_decode_set_shader_buffers()
1217 start_slot = get_buf_entry(buf, VIRGL_SET_ATOMIC_BUFFER_START_SLOT); in vrend_decode_set_atomic_buffers()
1227 uint32_t offset = get_buf_entry(buf, i * VIRGL_SET_ATOMIC_BUFFER_ELEMENT_SIZE + 2); in vrend_decode_set_atomic_buffers()
1228 uint32_t buf_len = get_buf_entry(buf, i * VIRGL_SET_ATOMIC_BUFFER_ELEMENT_SIZE + 3); in vrend_decode_set_atomic_buffers()
1229 uint32_t handle = get_buf_entry(buf, i * VIRGL_SET_ATOMIC_BUFFER_ELEMENT_SIZE + 4); in vrend_decode_set_atomic_buffers()
1244 shader_type = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_SHADER_TYPE); in vrend_decode_set_shader_images()
1245 start_slot = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_START_SLOT); in vrend_decode_set_shader_images()
1257 uint32_t format = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_FORMAT(i)); in vrend_decode_set_shader_images()
1258 uint32_t access = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_ACCESS(i)); in vrend_decode_set_shader_images()
1259 uint32_t layer_offset = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_LAYER_OFFSET(i)); in vrend_decode_set_shader_images()
1260 uint32_t level_size = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_LEVEL_SIZE(i)); in vrend_decode_set_shader_images()
1261 uint32_t handle = get_buf_entry(buf, VIRGL_SET_SHADER_IMAGE_RES_HANDLE(i)); in vrend_decode_set_shader_images()
1273 unsigned flags = get_buf_entry(buf, VIRGL_MEMORY_BARRIER_FLAGS); in vrend_decode_memory_barrier()
1285 block[0] = get_buf_entry(buf, VIRGL_LAUNCH_BLOCK_X); in vrend_decode_launch_grid()
1286 block[1] = get_buf_entry(buf, VIRGL_LAUNCH_BLOCK_Y); in vrend_decode_launch_grid()
1287 block[2] = get_buf_entry(buf, VIRGL_LAUNCH_BLOCK_Z); in vrend_decode_launch_grid()
1288 grid[0] = get_buf_entry(buf, VIRGL_LAUNCH_GRID_X); in vrend_decode_launch_grid()
1289 grid[1] = get_buf_entry(buf, VIRGL_LAUNCH_GRID_Y); in vrend_decode_launch_grid()
1290 grid[2] = get_buf_entry(buf, VIRGL_LAUNCH_GRID_Z); in vrend_decode_launch_grid()
1291 indirect_handle = get_buf_entry(buf, VIRGL_LAUNCH_INDIRECT_HANDLE); in vrend_decode_launch_grid()
1292 indirect_offset = get_buf_entry(buf, VIRGL_LAUNCH_INDIRECT_OFFSET); in vrend_decode_launch_grid()
1310 append_bitmask = get_buf_entry(buf, VIRGL_SET_STREAMOUT_TARGETS_APPEND_BITMASK); in vrend_decode_set_streamout_targets()
1312 handles[i] = get_buf_entry(buf, VIRGL_SET_STREAMOUT_TARGETS_H0 + i); in vrend_decode_set_streamout_targets()
1322 unsigned flags = get_buf_entry(buf, VIRGL_TEXTURE_BARRIER_FLAGS); in vrend_decode_texture_barrier()
1358 uint32_t tweak_id = get_buf_entry(buf, VIRGL_SET_TWEAKS_ID); in vrend_decode_set_tweaks()
1359 uint32_t tweak_value = get_buf_entry(buf, VIRGL_SET_TWEAKS_VALUE); in vrend_decode_set_tweaks()
1378 info.offset = get_buf_entry(buf, VIRGL_TRANSFER3D_DATA_OFFSET); in vrend_decode_transfer3d()
1379 int transfer_mode = get_buf_entry(buf, VIRGL_TRANSFER3D_DIRECTION); in vrend_decode_transfer3d()
1402 info.offset = get_buf_entry(buf, VIRGL_COPY_TRANSFER3D_SRC_RES_OFFSET); in vrend_decode_copy_transfer3d()
1403 info.synchronized = (get_buf_entry(buf, VIRGL_COPY_TRANSFER3D_SYNCHRONIZED) != 0); in vrend_decode_copy_transfer3d()
1405 src_handle = get_buf_entry(buf, VIRGL_COPY_TRANSFER3D_SRC_RES_HANDLE); in vrend_decode_copy_transfer3d()
1419 args.target = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_TARGET); in vrend_decode_pipe_resource_create()
1420 args.format = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_FORMAT); in vrend_decode_pipe_resource_create()
1421 args.bind = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_BIND); in vrend_decode_pipe_resource_create()
1422 args.width = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_WIDTH); in vrend_decode_pipe_resource_create()
1423 args.height = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_HEIGHT); in vrend_decode_pipe_resource_create()
1424 args.depth = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_DEPTH); in vrend_decode_pipe_resource_create()
1425 args.array_size = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_ARRAY_SIZE); in vrend_decode_pipe_resource_create()
1426 args.last_level = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_LAST_LEVEL); in vrend_decode_pipe_resource_create()
1427 args.nr_samples = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_NR_SAMPLES); in vrend_decode_pipe_resource_create()
1428 args.flags = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_FLAGS); in vrend_decode_pipe_resource_create()
1429 blob_id = get_buf_entry(buf, VIRGL_PIPE_RES_CREATE_BLOB_ID); in vrend_decode_pipe_resource_create()
1446 res_id = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_RES_HANDLE); in vrend_decode_pipe_resource_set_type()
1447 args.format = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_FORMAT); in vrend_decode_pipe_resource_set_type()
1448 args.bind = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_BIND); in vrend_decode_pipe_resource_set_type()
1449 args.width = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_WIDTH); in vrend_decode_pipe_resource_set_type()
1450 args.height = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_HEIGHT); in vrend_decode_pipe_resource_set_type()
1451 args.usage = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_USAGE); in vrend_decode_pipe_resource_set_type()
1452 args.modifier = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_MODIFIER_LO); in vrend_decode_pipe_resource_set_type()
1453 args.modifier |= (uint64_t)get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_MODIFIER_HI) << 32; in vrend_decode_pipe_resource_set_type()
1455 args.plane_strides[i] = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_PLANE_STRIDE(i)); in vrend_decode_pipe_resource_set_type()
1456 args.plane_offsets[i] = get_buf_entry(buf, VIRGL_PIPE_RES_SET_TYPE_PLANE_OFFSET(i)); in vrend_decode_pipe_resource_set_type()
1557 uint32_t res_handle = get_buf_entry(buf, 1); in vrend_decode_get_memory_info()