mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 09:20:23 +01:00
i965: Use _mesa_NamedBufferSubData for users of _mesa_meta_setup_vertex_objects
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
(cherry picked from commit ed0bd6573b)
This commit is contained in:
parent
e097324fee
commit
bf3f0b9e9b
1 changed files with 3 additions and 3 deletions
|
|
@ -372,7 +372,7 @@ adjust_mip_level(const struct intel_mipmap_tree *mt,
|
|||
}
|
||||
|
||||
static void
|
||||
prepare_vertex_data(void)
|
||||
prepare_vertex_data(GLuint vbo)
|
||||
{
|
||||
static const struct vertex verts[] = {
|
||||
{ .x = -1.0f, .y = -1.0f },
|
||||
|
|
@ -380,7 +380,7 @@ prepare_vertex_data(void)
|
|||
{ .x = 1.0f, .y = 1.0f },
|
||||
{ .x = -1.0f, .y = 1.0f } };
|
||||
|
||||
_mesa_BufferSubData(GL_ARRAY_BUFFER_ARB, 0, sizeof(verts), verts);
|
||||
_mesa_NamedBufferSubData(vbo, 0, sizeof(verts), verts);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
@ -460,7 +460,7 @@ brw_meta_stencil_blit(struct brw_context *brw,
|
|||
_mesa_Uniform1i(_mesa_GetUniformLocation(prog, "dst_num_samples"),
|
||||
dst_mt->num_samples);
|
||||
|
||||
prepare_vertex_data();
|
||||
prepare_vertex_data(ctx->Meta->Blit.VBO);
|
||||
_mesa_set_viewport(ctx, 0, dims.dst_x0, dims.dst_y0,
|
||||
dims.dst_x1 - dims.dst_x0, dims.dst_y1 - dims.dst_y0);
|
||||
_mesa_ColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue