From 86ab20fe9e22c0f54f979b88949a7f4d8bb57716 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 14 Jun 2019 17:02:19 -0500 Subject: [PATCH] HACK: anv: Use SURFTYPE_1D for texel buffers --- src/intel/isl/isl_surface_state.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index 4887dedc364..92737a7a17b 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -744,6 +744,14 @@ isl_genX(buffer_fill_state_s)(void *state, s.SurfacePitch = info->stride_B - 1; + if (info->stride_B > 1) { + s.SurfaceType = SURFTYPE_1D; + s.Width = num_elements - 1; + s.Height = 0; + s.Depth = 0; + s.SurfacePitch = 0; + } + #if GEN_GEN >= 6 s.NumberofMultisamples = MULTISAMPLECOUNT_1; #endif -- 2.21.0