mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-02 14:43:59 +08:00
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:
parent
b87c4de1b6
commit
23d2c845f9
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user