mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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 <chad.versace@linux.intel.com>
This commit is contained in:
parent
586b389474
commit
36e3413418
3 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue