From ee23dd139a7b76188c9245650e9f73d8b239e9c8 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 1 Nov 2013 17:33:42 -0700 Subject: [PATCH] i965: Use the new emit_buffer_surface_state() vtable entry. This will allow us to combine the Gen4-6 and Gen7 variants of these functions. Signed-off-by: Kenneth Graunke Reviewed-by: Paul Berry --- .../drivers/dri/i965/brw_wm_surface_state.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 5d43a0d47f9..a605c16ca81 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -251,13 +251,13 @@ brw_update_buffer_texture_surface(struct gl_context *ctx, _mesa_get_format_name(format)); } - gen4_emit_buffer_surface_state(brw, surf_offset, bo, - tObj->BufferOffset, - brw_format, - size / texel_size, - texel_size, - 0, - false); + brw->vtbl.emit_buffer_surface_state(brw, surf_offset, bo, + tObj->BufferOffset, + brw_format, + size / texel_size, + texel_size, + 0, /* mocs */ + false /* rw */); } static void @@ -332,9 +332,9 @@ brw_create_constant_surface(struct brw_context *brw, uint32_t stride = dword_pitch ? 4 : 16; uint32_t elements = ALIGN(size, stride) / stride; - gen4_emit_buffer_surface_state(brw, out_offset, bo, offset, - BRW_SURFACEFORMAT_R32G32B32A32_FLOAT, - elements, stride, 0, false); + brw->vtbl.emit_buffer_surface_state(brw, out_offset, bo, offset, + BRW_SURFACEFORMAT_R32G32B32A32_FLOAT, + elements, stride, 0, false); } /** -- 2.30.2