GPU: Fix failing compute tests.
Tests created GPUTextures with incorrect mipmaps.
This commit is contained in:
parent
e9586b14b7
commit
f08ea76db5
Notes:
blender-bot
2023-02-13 14:51:41 +01:00
Referenced by issue #99958, Draw tests are failing and must be updated.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue