summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_screen.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-11 22:18:54 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:04 -0800
commit7b80f4587d01740c8b583d72b38f495a93a0acbd (patch)
tree894570ef42537f5bc1998d5257f884529caa0df7 /src/gallium/drivers/iris/iris_screen.c
parent60208d12b490ebf6a281f7e981ec709626fbbc1c (diff)
iris: sampler states
Diffstat (limited to 'src/gallium/drivers/iris/iris_screen.c')
-rw-r--r--src/gallium/drivers/iris/iris_screen.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index 9d679848364..d1b4d443363 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -33,6 +33,7 @@
#include "util/ralloc.h"
#include "drm-uapi/i915_drm.h"
#include "iris_context.h"
+#include "iris_pipe.h"
#include "iris_resource.h"
#include "iris_screen.h"
#include "intel/compiler/brw_compiler.h"
@@ -422,20 +423,6 @@ iris_query_memory_info(struct pipe_screen *pscreen,
{
}
-static gl_shader_stage
-stage_from_pipe(enum pipe_shader_type pstage)
-{
- static const gl_shader_stage stages[PIPE_SHADER_TYPES] = {
- [PIPE_SHADER_VERTEX] = MESA_SHADER_VERTEX,
- [PIPE_SHADER_TESS_CTRL] = MESA_SHADER_TESS_CTRL,
- [PIPE_SHADER_TESS_EVAL] = MESA_SHADER_TESS_EVAL,
- [PIPE_SHADER_GEOMETRY] = MESA_SHADER_GEOMETRY,
- [PIPE_SHADER_FRAGMENT] = MESA_SHADER_FRAGMENT,
- [PIPE_SHADER_COMPUTE] = MESA_SHADER_COMPUTE,
- };
- return stages[pstage];
-}
-
static const void *
iris_get_compiler_options(struct pipe_screen *pscreen,
enum pipe_shader_ir ir,