summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-01-26 15:52:06 +0800
committerChia-I Wu <[email protected]>2015-02-12 07:56:12 +0800
commit7e7e45db65968df7a56c8c5aabed0a700633c72b (patch)
tree1f47402dc27e888056b51c0db65732cf0a3b7ae2 /src/gallium
parent8976a190b2c4049598afa23b7a277e9f571306ba (diff)
ilo: update SAMPLER_BORDER_COLOR_STATE for Gen8
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/ilo/ilo_builder_3d_top.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_builder_3d_top.h b/src/gallium/drivers/ilo/ilo_builder_3d_top.h
index 3e6a183bf55..7714301ba30 100644
--- a/src/gallium/drivers/ilo/ilo_builder_3d_top.h
+++ b/src/gallium/drivers/ilo/ilo_builder_3d_top.h
@@ -1624,10 +1624,11 @@ static inline uint32_t
gen6_SAMPLER_BORDER_COLOR_STATE(struct ilo_builder *builder,
const struct ilo_sampler_cso *sampler)
{
- const int state_align = 32;
+ const int state_align =
+ (ilo_dev_gen(builder->dev) >= ILO_GEN(8)) ? 64 : 32;
const int state_len = (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) ? 4 : 12;
- ILO_DEV_ASSERT(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 8);
assert(Elements(sampler->payload) >= 3 + state_len);