Home
last modified time | relevance | path

Searched refs:vtest_hdr (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/virtio/vulkan/
Dvn_renderer_vtest.c164 uint32_t vtest_hdr[VTEST_HDR_SIZE]; in vtest_vcmd_create_renderer() local
165 vtest_hdr[VTEST_CMD_LEN] = size; in vtest_vcmd_create_renderer()
166 vtest_hdr[VTEST_CMD_ID] = VCMD_CREATE_RENDERER; in vtest_vcmd_create_renderer()
168 vtest_write(vtest, vtest_hdr, sizeof(vtest_hdr)); in vtest_vcmd_create_renderer()
175 uint32_t vtest_hdr[VTEST_HDR_SIZE]; in vtest_vcmd_ping_protocol_version() local
176 vtest_hdr[VTEST_CMD_LEN] = VCMD_PING_PROTOCOL_VERSION_SIZE; in vtest_vcmd_ping_protocol_version()
177 vtest_hdr[VTEST_CMD_ID] = VCMD_PING_PROTOCOL_VERSION; in vtest_vcmd_ping_protocol_version()
179 vtest_write(vtest, vtest_hdr, sizeof(vtest_hdr)); in vtest_vcmd_ping_protocol_version()
185 vtest_hdr[VTEST_CMD_LEN] = VCMD_BUSY_WAIT_SIZE; in vtest_vcmd_ping_protocol_version()
186 vtest_hdr[VTEST_CMD_ID] = VCMD_RESOURCE_BUSY_WAIT; in vtest_vcmd_ping_protocol_version()
[all …]
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_socket.c147 uint32_t vtest_hdr[VTEST_HDR_SIZE]; in virgl_vtest_negotiate_version() local
153 vtest_hdr[VTEST_CMD_LEN] = VCMD_PING_PROTOCOL_VERSION_SIZE; in virgl_vtest_negotiate_version()
154 vtest_hdr[VTEST_CMD_ID] = VCMD_PING_PROTOCOL_VERSION; in virgl_vtest_negotiate_version()
155 virgl_block_write(vws->sock_fd, &vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
157 vtest_hdr[VTEST_CMD_LEN] = VCMD_BUSY_WAIT_SIZE; in virgl_vtest_negotiate_version()
158 vtest_hdr[VTEST_CMD_ID] = VCMD_RESOURCE_BUSY_WAIT; in virgl_vtest_negotiate_version()
161 virgl_block_write(vws->sock_fd, &vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
164 ret = virgl_block_read(vws->sock_fd, vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
167 if (vtest_hdr[VTEST_CMD_ID] == VCMD_PING_PROTOCOL_VERSION) { in virgl_vtest_negotiate_version()
169 ret = virgl_block_read(vws->sock_fd, vtest_hdr, sizeof(vtest_hdr)); in virgl_vtest_negotiate_version()
[all …]