LibVirtGPU: Drop gl_ prefix from CommandBufferBuilder methods

This commit is contained in:
Stephan Unverwerth 2022-12-21 15:51:43 +01:00 committed by Andreas Kling
parent b220ed6b5c
commit 7a2b9ad164
Notes: sideshowbarker 2024-07-17 02:34:51 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -145,7 +145,7 @@ void CommandBufferBuilder::append_draw_vbo(u32 count)
builder.appendu32(0); // cso
}
void CommandBufferBuilder::append_gl_clear(float r, float g, float b)
void CommandBufferBuilder::append_clear(float r, float g, float b)
{
CommandBuilder builder(m_buffer, Protocol::VirGLCommand::CLEAR, Protocol::ObjectType::NONE);
Protocol::ClearType clear_flags {};
@ -224,7 +224,7 @@ void CommandBufferBuilder::append_set_framebuffer_state(Protocol::ObjectHandle d
builder.appendu32(drawtarget.value()); // surf_handle
}
void CommandBufferBuilder::append_gl_viewport()
void CommandBufferBuilder::append_viewport()
{
CommandBuilder builder(m_buffer, Protocol::VirGLCommand::SET_VIEWPORT_STATE, Protocol::ObjectType::NONE);
builder.appendu32(0);

View file

@ -21,7 +21,7 @@ public:
void append_transfer3d(Protocol::ResourceID resource, size_t width, size_t height = 1, size_t depth = 1, size_t direction = VIRGL_DATA_DIR_GUEST_TO_HOST);
void append_end_transfers_3d();
void append_draw_vbo(u32 count);
void append_gl_clear(float r, float g, float b);
void append_clear(float r, float g, float b);
void append_set_vertex_buffers(u32 stride, u32 offset, Protocol::ResourceID resource);
void append_create_blend(Protocol::ObjectHandle handle);
void append_bind_blend(Protocol::ObjectHandle handle);
@ -29,7 +29,7 @@ public:
void append_set_framebuffer_state(Protocol::ObjectHandle drawtarget, Protocol::ObjectHandle depthbuffer = 0);
void append_create_vertex_elements(Protocol::ObjectHandle handle);
void append_bind_vertex_elements(Protocol::ObjectHandle handle);
void append_gl_viewport();
void append_viewport();
void append_set_framebuffer_state_no_attach();
void append_set_constant_buffer(Vector<float> const& constant_buffer);
void append_create_shader(Protocol::ObjectHandle handle, Gallium::ShaderType shader_type, StringView shader_data);