aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2012-04-26 18:01:01 -0700
committerPaul Berry <[email protected]>2012-05-15 15:09:22 -0700
commit36e34134184e72532f2e6a2b9438f72284ac3057 (patch)
tree38c8c2f726e207535d7f591a43b7e33e3b103b3e /src
parent586b3894744819071bb1ad56383e3c0d9e5b7e1f (diff)
i965: Expose surface setup internals for use by blits.
This patch exposes the functions brw_get_surface_tiling_bits and gen7_set_surface_tiling, so that they can be re-used when setting up surface states in gen6_blorp.cpp and gen7_blorp.cpp. Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_state.h2
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c2
-rw-r--r--src/mesa/drivers/dri/i965/gen7_wm_surface_state.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h
index 659cb0a2898..9e3736170c7 100644
--- a/src/mesa/drivers/dri/i965/brw_state.h
+++ b/src/mesa/drivers/dri/i965/brw_state.h
@@ -180,6 +180,7 @@ void *brw_state_batch(struct brw_context *brw,
/* brw_wm_surface_state.c */
void gen4_init_vtable_surface_functions(struct brw_context *brw);
+uint32_t brw_get_surface_tiling_bits(uint32_t tiling);
void brw_create_constant_surface(struct brw_context *brw,
drm_intel_bo *bo,
int width,
@@ -195,6 +196,7 @@ GLuint translate_tex_format(gl_format mesa_format,
GLenum srgb_decode);
/* gen7_wm_surface_state.c */
+void gen7_set_surface_tiling(struct gen7_surface_state *surf, uint32_t tiling);
void gen7_init_vtable_surface_functions(struct brw_context *brw);
void gen7_create_constant_surface(struct brw_context *brw,
drm_intel_bo *bo,
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 0bb9414ed58..104d475f3f9 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -620,7 +620,7 @@ translate_tex_format(gl_format mesa_format,
}
}
-static uint32_t
+uint32_t
brw_get_surface_tiling_bits(uint32_t tiling)
{
switch (tiling) {
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 8f62c040b6a..d84e07582a0 100644
--- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
@@ -35,7 +35,7 @@
#include "brw_defines.h"
#include "brw_wm.h"
-static void
+void
gen7_set_surface_tiling(struct gen7_surface_state *surf, uint32_t tiling)
{
switch (tiling) {