diff options
author | Kenneth Graunke <[email protected]> | 2018-10-07 20:31:09 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:09 -0800 |
commit | 94569a645837df895e889c7e451e35b8e31556fd (patch) | |
tree | 88d80702025a8ecd32cf938187164b597d3c9d4d /src/gallium/drivers/iris/iris_resource.h | |
parent | b9eeed3e8f964f1ee8b169497299b9e76c076154 (diff) |
iris: rework format translation apis
Diffstat (limited to 'src/gallium/drivers/iris/iris_resource.h')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.h b/src/gallium/drivers/iris/iris_resource.h index 6aa16c09d4c..14a780a9011 100644 --- a/src/gallium/drivers/iris/iris_resource.h +++ b/src/gallium/drivers/iris/iris_resource.h @@ -27,6 +27,11 @@ #include "util/u_inlines.h" #include "intel/isl/isl.h" +struct iris_format_info { + enum isl_format fmt; + struct isl_swizzle swizzle; +}; + #define IRIS_RESOURCE_FLAG_SHADER_MEMZONE (PIPE_RESOURCE_FLAG_DRV_PRIV << 0) #define IRIS_RESOURCE_FLAG_SURFACE_MEMZONE (PIPE_RESOURCE_FLAG_DRV_PRIV << 1) #define IRIS_RESOURCE_FLAG_DYNAMIC_MEMZONE (PIPE_RESOURCE_FLAG_DRV_PRIV << 2) @@ -110,10 +115,9 @@ iris_resource_bo(struct pipe_resource *p_res) return res->bo; } -enum isl_format iris_isl_format_for_pipe_format(enum pipe_format pf); -enum isl_format iris_isl_format_for_usage(const struct gen_device_info *, - enum pipe_format, - isl_surf_usage_flags_t usage); +struct iris_format_info iris_format_for_usage(const struct gen_device_info *, + enum pipe_format pf, + isl_surf_usage_flags_t usage); struct pipe_resource *iris_resource_get_separate_stencil(struct pipe_resource *); |