llvmpipe: fix DRAW_USE_LLVM=0

this only supports 16 UBOs

fixes #9346

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28335>
(cherry picked from commit 356d88d1e8)
This commit is contained in:
Mike Blumenkrantz 2024-03-22 10:23:15 -04:00 committed by Eric Engestrom
parent b87c4de1b6
commit 23d2c845f9
2 changed files with 6 additions and 1 deletions

View File

@ -3924,7 +3924,7 @@
"description": "llvmpipe: fix DRAW_USE_LLVM=0",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View File

@ -410,6 +410,11 @@ llvmpipe_get_shader_param(struct pipe_screen *screen,
return PIPE_MAX_SHADER_SAMPLER_VIEWS;
else
return 0;
case PIPE_SHADER_CAP_MAX_CONST_BUFFERS:
if (debug_get_bool_option("DRAW_USE_LLVM", false))
return LP_MAX_TGSI_CONST_BUFFERS;
else
return draw_get_shader_param(shader, param);
default:
return draw_get_shader_param(shader, param);
}