summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_shader.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-07-18 05:58:42 +0800
committerChia-I Wu <[email protected]>2013-08-13 15:52:41 +0800
commit5e30ffbda6259c2bbd519c5fe092df1db1d0c94d (patch)
tree44fd7927526598222b4d69be0f5f1206d2151153 /src/gallium/drivers/ilo/ilo_shader.c
parent5df62dce347eb8046a38630280aa043e075ac56f (diff)
ilo: support copying constant buffer 0 to PCB
Add ILO_KERNEL_PCB_CBUF0_SIZE so that a kernel can specify how many bytes of constant buffer 0 need to be copied to PCB.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_shader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c
index 0db03966c6b..b1a11a1391b 100644
--- a/src/gallium/drivers/ilo/ilo_shader.c
+++ b/src/gallium/drivers/ilo/ilo_shader.c
@@ -1063,6 +1063,9 @@ ilo_shader_get_kernel_param(const struct ilo_shader_state *shader,
case ILO_KERNEL_SKIP_CBUF0_UPLOAD:
val = false;
break;
+ case ILO_KERNEL_PCB_CBUF0_SIZE:
+ val = 0;
+ break;
case ILO_KERNEL_VS_INPUT_INSTANCEID:
val = shader->info.has_instanceid;