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.c168 uint32_t vtest_hdr[VTEST_HDR_SIZE]; in vtest_vcmd_create_renderer() local
169 vtest_hdr[VTEST_CMD_LEN] = size; in vtest_vcmd_create_renderer()
170 vtest_hdr[VTEST_CMD_ID] = VCMD_CREATE_RENDERER; in vtest_vcmd_create_renderer()
172 vtest_write(vtest, vtest_hdr, sizeof(vtest_hdr)); in vtest_vcmd_create_renderer()
179 uint32_t vtest_hdr[VTEST_HDR_SIZE]; in vtest_vcmd_ping_protocol_version() local
180 vtest_hdr[VTEST_CMD_LEN] = VCMD_PING_PROTOCOL_VERSION_SIZE; in vtest_vcmd_ping_protocol_version()
181 vtest_hdr[VTEST_CMD_ID] = VCMD_PING_PROTOCOL_VERSION; in vtest_vcmd_ping_protocol_version()
183 vtest_write(vtest, vtest_hdr, sizeof(vtest_hdr)); in vtest_vcmd_ping_protocol_version()
189 vtest_hdr[VTEST_CMD_LEN] = VCMD_BUSY_WAIT_SIZE; in vtest_vcmd_ping_protocol_version()
190 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 …]