From 68522bf36ce13f7be7aa0dbd9345f287053ff5c2 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 21 Jun 2013 11:36:11 +0800 Subject: ilo: use ilo_shader_cso for FS Add ilo_gpe_init_fs_cso() to construct 3DSTATE_PS and shader part of 3DSTATE_WM once and early for fragment shaders. --- src/gallium/drivers/ilo/ilo_shader.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/ilo/ilo_shader.c') diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c index 086134a2bc8..c2d5623fc26 100644 --- a/src/gallium/drivers/ilo/ilo_shader.c +++ b/src/gallium/drivers/ilo/ilo_shader.c @@ -686,6 +686,9 @@ ilo_shader_state_use_variant(struct ilo_shader_state *state, case PIPE_SHADER_GEOMETRY: ilo_gpe_init_gs_cso(state->info.dev, state, &sh->cso); break; + case PIPE_SHADER_FRAGMENT: + ilo_gpe_init_fs_cso(state->info.dev, state, &sh->cso); + break; default: break; } -- cgit v1.2.3