mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 05:50:11 +01:00
freedreno/a3xx: fd3_util -> fd3_format
All the "util" helpers are actually format-related Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
3de9fa8ff4
commit
3338bfcf49
15 changed files with 18 additions and 22 deletions
|
|
@ -72,6 +72,8 @@ a3xx_SOURCES := \
|
|||
a3xx/fd3_draw.h \
|
||||
a3xx/fd3_emit.c \
|
||||
a3xx/fd3_emit.h \
|
||||
a3xx/fd3_format.c \
|
||||
a3xx/fd3_format.h \
|
||||
a3xx/fd3_gmem.c \
|
||||
a3xx/fd3_gmem.h \
|
||||
a3xx/fd3_program.c \
|
||||
|
|
@ -84,8 +86,6 @@ a3xx_SOURCES := \
|
|||
a3xx/fd3_screen.h \
|
||||
a3xx/fd3_texture.c \
|
||||
a3xx/fd3_texture.h \
|
||||
a3xx/fd3_util.c \
|
||||
a3xx/fd3_util.h \
|
||||
a3xx/fd3_zsa.c \
|
||||
a3xx/fd3_zsa.h
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include "fd3_blend.h"
|
||||
#include "fd3_context.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
|
||||
static enum a3xx_rb_blend_opcode
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
#include "fd3_context.h"
|
||||
#include "fd3_emit.h"
|
||||
#include "fd3_program.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
#include "fd3_zsa.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
#include "fd3_program.h"
|
||||
#include "fd3_rasterizer.h"
|
||||
#include "fd3_texture.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
#include "fd3_zsa.h"
|
||||
|
||||
/* regid: base const register
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include "pipe/p_context.h"
|
||||
|
||||
#include "freedreno_context.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
#include "fd3_program.h"
|
||||
#include "ir3_shader.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
#include "pipe/p_defines.h"
|
||||
#include "util/u_format.h"
|
||||
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
/* convert pipe format to vertex buffer format: */
|
||||
enum a3xx_vtx_fmt
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
/* -*- mode: C; c-file-style: "k&r"; tab-width 4; indent-tabs-mode: t; -*- */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2013 Rob Clark <robclark@freedesktop.org>
|
||||
*
|
||||
|
|
@ -22,12 +20,10 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*
|
||||
* Authors:
|
||||
* Rob Clark <robclark@freedesktop.org>
|
||||
*/
|
||||
|
||||
#ifndef FD3_UTIL_H_
|
||||
#define FD3_UTIL_H_
|
||||
#ifndef FD3_FORMAT_H_
|
||||
#define FD3_FORMAT_H_
|
||||
|
||||
#include "freedreno_util.h"
|
||||
|
||||
|
|
@ -43,4 +39,4 @@ enum a3xx_color_swap fd3_pipe2swap(enum pipe_format format);
|
|||
uint32_t fd3_tex_swiz(enum pipe_format format, unsigned swizzle_r,
|
||||
unsigned swizzle_g, unsigned swizzle_b, unsigned swizzle_a);
|
||||
|
||||
#endif /* FD3_UTIL_H_ */
|
||||
#endif /* FD3_FORMAT_H_ */
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
#include "fd3_context.h"
|
||||
#include "fd3_emit.h"
|
||||
#include "fd3_program.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
#include "fd3_zsa.h"
|
||||
|
||||
static const struct ir3_shader_key key = {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
#include "fd3_program.h"
|
||||
#include "fd3_emit.h"
|
||||
#include "fd3_texture.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
static void
|
||||
delete_shader_stateobj(struct fd3_shader_stateobj *so)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
#include "freedreno_util.h"
|
||||
|
||||
#include "fd3_query.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
|
||||
struct fd_rb_samp_ctrs {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "fd3_rasterizer.h"
|
||||
#include "fd3_context.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
void *
|
||||
fd3_rasterizer_state_create(struct pipe_context *pctx,
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include "fd3_screen.h"
|
||||
#include "fd3_context.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
static boolean
|
||||
fd3_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
#include "util/u_format.h"
|
||||
|
||||
#include "fd3_texture.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
static enum a3xx_tex_clamp
|
||||
tex_clamp(unsigned wrap, bool clamp_to_edge)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
#include "freedreno_resource.h"
|
||||
|
||||
#include "fd3_context.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
struct fd3_sampler_stateobj {
|
||||
struct pipe_sampler_state base;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include "fd3_zsa.h"
|
||||
#include "fd3_context.h"
|
||||
#include "fd3_util.h"
|
||||
#include "fd3_format.h"
|
||||
|
||||
void *
|
||||
fd3_zsa_state_create(struct pipe_context *pctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue