summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-11-01 17:37:10 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-11-05 17:59:51 -0800
commit7a974a645e8b5c6a9aca3cc935a5a95cd9f33af8 (patch)
treecbbfe09be8dc1257f4649e8124c73cb16d6f247a /src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
parentee23dd139a7b76188c9245650e9f73d8b239e9c8 (diff)
downloadexternal_mesa3d-7a974a645e8b5c6a9aca3cc935a5a95cd9f33af8.zip
external_mesa3d-7a974a645e8b5c6a9aca3cc935a5a95cd9f33af8.tar.gz
external_mesa3d-7a974a645e8b5c6a9aca3cc935a5a95cd9f33af8.tar.bz2
i965: Unvirtualize brw_create_constant_surface; delete Gen7+ variant.
Now that brw_create_constant_surface uses a virtual function internally, it doesn't need to be virtual itself. We can delete the Gen7+ variant and simplify things. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen7_wm_surface_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_wm_surface_state.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
index 2a42e32..c52e12d 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
@@ -398,32 +398,6 @@ gen7_update_texture_surface(struct gl_context *ctx,
}
/**
- * Create the constant buffer surface. Vertex/fragment shader constants will
- * be read from this buffer with Data Port Read instructions/messages.
- */
-static void
-gen7_create_constant_surface(struct brw_context *brw,
- drm_intel_bo *bo,
- uint32_t offset,
- uint32_t size,
- uint32_t *out_offset,
- bool dword_pitch)
-{
- uint32_t stride = dword_pitch ? 4 : 16;
- uint32_t elements = ALIGN(size, stride) / stride;
-
- gen7_emit_buffer_surface_state(brw,
- out_offset,
- bo,
- offset,
- BRW_SURFACEFORMAT_R32G32B32A32_FLOAT,
- elements,
- stride,
- 0 /* mocs */,
- false /* rw */);
-}
-
-/**
* Create a raw surface for untyped R/W access.
*/
static void
@@ -613,7 +587,6 @@ gen7_init_vtable_surface_functions(struct brw_context *brw)
brw->vtbl.update_renderbuffer_surface = gen7_update_renderbuffer_surface;
brw->vtbl.update_null_renderbuffer_surface =
gen7_update_null_renderbuffer_surface;
- brw->vtbl.create_constant_surface = gen7_create_constant_surface;
brw->vtbl.create_raw_surface = gen7_create_raw_surface;
brw->vtbl.emit_buffer_surface_state = gen7_emit_buffer_surface_state;
}