[Bf-blender-cvs] [f08ea76db59] blender-v3.3-release: GPU: Fix failing compute tests.

Jeroen Bakker noreply at git.blender.org
Mon Aug 1 15:24:35 CEST 2022


Commit: f08ea76db591a1ca60715f19f3465da57b26f64e
Author: Jeroen Bakker
Date:   Mon Aug 1 15:23:53 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBf08ea76db591a1ca60715f19f3465da57b26f64e

GPU: Fix failing compute tests.

Tests created GPUTextures with incorrect mipmaps.

===================================================================

M	source/blender/gpu/tests/gpu_shader_test.cc

===================================================================

diff --git a/source/blender/gpu/tests/gpu_shader_test.cc b/source/blender/gpu/tests/gpu_shader_test.cc
index adb9b059fc6..ab1409dfcde 100644
--- a/source/blender/gpu/tests/gpu_shader_test.cc
+++ b/source/blender/gpu/tests/gpu_shader_test.cc
@@ -48,7 +48,7 @@ void main() {
 
   /* Create texture to store result and attach to shader. */
   GPUTexture *texture = GPU_texture_create_2d(
-      "gpu_shader_compute_2d", SIZE, SIZE, 0, GPU_RGBA32F, nullptr);
+      "gpu_shader_compute_2d", SIZE, SIZE, 1, GPU_RGBA32F, nullptr);
   EXPECT_NE(texture, nullptr);
 
   GPU_shader_bind(shader);
@@ -109,7 +109,7 @@ void main() {
 
   /* Construct Texture. */
   GPUTexture *texture = GPU_texture_create_1d(
-      "gpu_shader_compute_1d", SIZE, 0, GPU_RGBA32F, nullptr);
+      "gpu_shader_compute_1d", SIZE, 1, GPU_RGBA32F, nullptr);
   EXPECT_NE(texture, nullptr);
 
   GPU_shader_bind(shader);



More information about the Bf-blender-cvs mailing list