diff options
author | Nicolai Hähnle <[email protected]> | 2017-08-02 11:56:16 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 14:18:52 +0200 |
commit | e7499953267028f5d28257e0e932fafc346c2243 (patch) | |
tree | f6ba80836d666107b2522eaa4c62a3229f4876cc /src/mesa/state_tracker/st_texture.c | |
parent | 56e3b8b9e6e38abab981f089d74290adc75f6d43 (diff) |
st/mesa: replace st_shader_stage_to_ptarget
Use pipe_shader_type_from_mesa instead.
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_texture.c')
-rw-r--r-- | src/mesa/state_tracker/st_texture.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index 2cd783e15b6..f749fb0a9fc 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -41,6 +41,7 @@ #include "util/u_rect.h" #include "util/u_math.h" #include "util/u_memory.h" +#include "tgsi/tgsi_from_mesa.h" #define DBG if(0) printf @@ -550,7 +551,7 @@ void st_make_bound_samplers_resident(struct st_context *st, struct gl_program *prog) { - enum pipe_shader_type shader = st_shader_stage_to_ptarget(prog->info.stage); + enum pipe_shader_type shader = pipe_shader_type_from_mesa(prog->info.stage); struct st_bound_handles *bound_handles = &st->bound_texture_handles[shader]; struct pipe_context *pipe = st->pipe; GLuint64 handle; @@ -597,7 +598,7 @@ void st_make_bound_images_resident(struct st_context *st, struct gl_program *prog) { - enum pipe_shader_type shader = st_shader_stage_to_ptarget(prog->info.stage); + enum pipe_shader_type shader = pipe_shader_type_from_mesa(prog->info.stage); struct st_bound_handles *bound_handles = &st->bound_image_handles[shader]; struct pipe_context *pipe = st->pipe; GLuint64 handle; |