Skip to content

Commit

Permalink
LibVirtGPU: Drop gl_ prefix from CommandBufferBuilder methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sunverwerth authored and awesomekling committed Dec 26, 2022
1 parent b220ed6 commit 7a2b9ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Userland/Libraries/LibVirtGPU/CommandBufferBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions Userland/Libraries/LibVirtGPU/CommandBufferBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ class CommandBufferBuilder {
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);
void append_create_surface(Protocol::ResourceID drawtarget_resource, Protocol::ObjectHandle drawtarget_handle, Protocol::TextureFormat format);
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);
Expand Down

0 comments on commit 7a2b9ad

Please sign in to comment.