summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-11-01 17:33:42 -0700
committerKenneth Graunke <[email protected]>2013-11-05 17:59:50 -0800
commitee23dd139a7b76188c9245650e9f73d8b239e9c8 (patch)
tree66f03e1e4d8b0c2a755845edf713c131d3dcc3ea /src/mesa
parentba836e02a3f09cdc2188c45b6e409a936a840bea (diff)
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 <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c20
1 files 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);
}
/**