diff options
author | Chia-I Wu <[email protected]> | 2015-10-23 00:45:49 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-10-23 17:29:58 +0800 |
commit | 582ecb3b9132ff3690900e5426c982187d640c87 (patch) | |
tree | 43ebd68037c0d8dc479945e5d499d4084abff911 /src/gallium/drivers/ilo/ilo_render_gen8.c | |
parent | 4a7d18296a9e80d2c5458bf77f8eb88913433c90 (diff) |
ilo: add support for scratch spaces
When a kernel reports a non-zero per-thread scratch space size, make sure the
hardware state is correctly set up, and a scratch bo is allocated.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render_gen8.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_render_gen8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render_gen8.c b/src/gallium/drivers/ilo/ilo_render_gen8.c index 1f750a2bfed..efe0e0d501b 100644 --- a/src/gallium/drivers/ilo/ilo_render_gen8.c +++ b/src/gallium/drivers/ilo/ilo_render_gen8.c @@ -125,7 +125,7 @@ gen8_draw_wm(struct ilo_render *r, /* 3DSTATE_PS */ if (DIRTY(FS) || r->instruction_bo_changed) - gen8_3DSTATE_PS(r->builder, &cso->ps, kernel_offset, NULL); + gen8_3DSTATE_PS(r->builder, &cso->ps, kernel_offset, r->fs_scratch.bo); /* 3DSTATE_PS_EXTRA */ if (DIRTY(FS)) |