iris: Move iris_get_compiler_options to iris_program.c
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27646>
This commit is contained in:
@@ -1326,6 +1326,9 @@ iris_fs_barycentric_modes(const struct iris_compiled_shader *shader,
|
||||
enum intel_msaa_flags pushed_msaa_flags);
|
||||
bool iris_use_tcs_multi_patch(struct iris_screen *screen);
|
||||
bool iris_indirect_ubos_use_sampler(struct iris_screen *screen);
|
||||
const void *iris_get_compiler_options(struct pipe_screen *pscreen,
|
||||
enum pipe_shader_ir ir,
|
||||
enum pipe_shader_type pstage);
|
||||
|
||||
/* iris_disk_cache.c */
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include "intel/compiler/intel_nir.h"
|
||||
#include "intel/compiler/brw_prim.h"
|
||||
#include "iris_context.h"
|
||||
#include "iris_pipe.h"
|
||||
#include "nir/tgsi_to_nir.h"
|
||||
|
||||
#define KEY_INIT(prefix) \
|
||||
@@ -3322,6 +3323,18 @@ iris_shader_perf_log(void *data, unsigned *id, const char *fmt, ...)
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
const void *
|
||||
iris_get_compiler_options(struct pipe_screen *pscreen,
|
||||
enum pipe_shader_ir ir,
|
||||
enum pipe_shader_type pstage)
|
||||
{
|
||||
struct iris_screen *screen = (struct iris_screen *) pscreen;
|
||||
gl_shader_stage stage = stage_from_pipe(pstage);
|
||||
assert(ir == PIPE_SHADER_IR_NIR);
|
||||
|
||||
return screen->compiler->nir_options[stage];
|
||||
}
|
||||
|
||||
void
|
||||
iris_compiler_init(struct iris_screen *screen)
|
||||
{
|
||||
|
||||
@@ -703,18 +703,6 @@ iris_query_memory_info(struct pipe_screen *pscreen,
|
||||
info->nr_device_memory_evictions = 0;
|
||||
}
|
||||
|
||||
static const void *
|
||||
iris_get_compiler_options(struct pipe_screen *pscreen,
|
||||
enum pipe_shader_ir ir,
|
||||
enum pipe_shader_type pstage)
|
||||
{
|
||||
struct iris_screen *screen = (struct iris_screen *) pscreen;
|
||||
gl_shader_stage stage = stage_from_pipe(pstage);
|
||||
assert(ir == PIPE_SHADER_IR_NIR);
|
||||
|
||||
return screen->compiler->nir_options[stage];
|
||||
}
|
||||
|
||||
static struct disk_cache *
|
||||
iris_get_disk_shader_cache(struct pipe_screen *pscreen)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user