diff options
author | Chia-I Wu <[email protected]> | 2013-08-15 11:14:05 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-08-15 11:35:46 +0800 |
commit | a453eb6f86ee1df49ebb9e864124a46c824e4e85 (patch) | |
tree | 6a157331e5f31ffbe656571c23791eba2f05dfb1 /src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c | |
parent | ae645b83fc9dc4a49a55a52f9ff4202c62afbba6 (diff) |
ilo: fix fragment shaders that use PCB on GEN7+
Missed this commit when preparing PCB changes for upstreaming.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c b/src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c index b395f9beffb..aa54898ac3f 100644 --- a/src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c +++ b/src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c @@ -493,8 +493,12 @@ gen7_pipeline_wm(struct ilo_3d_pipeline *p, } /* 3DSTATE_CONSTANT_PS */ - if (session->pcb_state_fs_changed) - gen7_emit_3DSTATE_CONSTANT_PS(p->dev, NULL, NULL, 0, p->cp); + if (session->pcb_state_fs_changed) { + gen7_emit_3DSTATE_CONSTANT_PS(p->dev, + &p->state.wm.PUSH_CONSTANT_BUFFER, + &p->state.wm.PUSH_CONSTANT_BUFFER_size, + 1, p->cp); + } /* 3DSTATE_PS */ if (DIRTY(FS) || DIRTY(SAMPLER_FS) || DIRTY(BLEND) || |