summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_resource.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2015-03-06 12:41:55 -0700
committerChia-I Wu <[email protected]>2015-03-07 04:32:39 +0800
commitbca6c8572f68a21e43982ffec057b30f35465965 (patch)
treebd4e25ad19f2d47b1f712e66f5a41db6c03831f2 /src/gallium/drivers/ilo/ilo_resource.c
parentbf061a3d2ec00aa486cda0fb4af04e50e8522868 (diff)
ilo: clarify valid and preferred tilings
We did it right until the switch to gen_surface_tiling, which has GEN8_TILING_W. Generally, GEN8_TILING_W may be valid but not preferred.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_resource.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_resource.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c
index 7815354be01..18062d75622 100644
--- a/src/gallium/drivers/ilo/ilo_resource.c
+++ b/src/gallium/drivers/ilo/ilo_resource.c
@@ -220,6 +220,9 @@ tex_create_separate_stencil(struct ilo_texture *tex)
*/
templ.format = PIPE_FORMAT_S8_UINT;
+ /* no stencil texturing */
+ templ.bind &= ~PIPE_BIND_SAMPLER_VIEW;
+
s8 = tex->base.screen->resource_create(tex->base.screen, &templ);
if (!s8)
return false;