projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8976a19
)
ilo: update SAMPLER_BORDER_COLOR_STATE for Gen8
author
Chia-I Wu
<olvaffe@gmail.com>
Mon, 26 Jan 2015 07:52:06 +0000
(15:52 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Wed, 11 Feb 2015 23:56:12 +0000
(07:56 +0800)
src/gallium/drivers/ilo/ilo_builder_3d_top.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_builder_3d_top.h
b/src/gallium/drivers/ilo/ilo_builder_3d_top.h
index 3e6a183bf55c7382f01d8b2360d756982d770932..7714301ba30cc04d7aad40bc3a661b2ff5d750d0 100644
(file)
--- 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);