From fdc5138256aa68dde9ea068f7137023708bbceac Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Tue, 10 Aug 2021 21:02:43 -0400 Subject: [PATCH] st/mesa: fix pbo download store image type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit There's generally not too big of a difference between 1D (default) and buffer, but can't hurt to be accurate. Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák Part-of: --- src/mesa/state_tracker/st_pbo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_pbo.c b/src/mesa/state_tracker/st_pbo.c index f6d1f34..a9d7cec 100644 --- a/src/mesa/state_tracker/st_pbo.c +++ b/src/mesa/state_tracker/st_pbo.c @@ -569,7 +569,8 @@ create_fs(struct st_context *st, bool download, nir_vec4(&b, pbo_addr, zero, zero, zero), zero, result, - nir_imm_int(&b, 0)); + nir_imm_int(&b, 0), + .image_dim = GLSL_SAMPLER_DIM_BUF); } else { nir_variable *color = nir_variable_create(b.shader, nir_var_shader_out, glsl_vec4_type(), -- 2.7.4