diff options
author | Ian Romanick <[email protected]> | 2015-11-02 19:10:08 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-11-24 11:50:29 -0800 |
commit | fa4b6a78fa36f03a53082474f57ef559a6bf3643 (patch) | |
tree | 0daea03accbe68fa3e1a4eec734f29f460e5b77b | |
parent | 36afa9988b79ed513ac72706b1b72ff2f3c33f1d (diff) |
i965: Use _mesa_NamedBufferSubData for users of _mesa_meta_setup_vertex_objects
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
(cherry picked from commit ed0bd6573b6ce83471e73d009dbab5220f9e80c0)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c b/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c index aa6df16eb04..6f64b54c107 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c +++ b/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c @@ -360,7 +360,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 }, @@ -368,7 +368,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 @@ -448,7 +448,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); |