mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-17 04:28:28 +02:00
softpipe: correct signature of get_compiler_options
This gets rid of a harmless but annoying compiler warning on MSVC. Fixes:73bafb5ee3("gallium: s/unsigned/enum pipe_shader_type/ for get_compiler_options()") Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7524> (cherry picked from commit7a1346b26a)
This commit is contained in:
parent
23f4120491
commit
46c08b73de
2 changed files with 3 additions and 2 deletions
|
|
@ -1453,7 +1453,7 @@
|
|||
"description": "softpipe: correct signature of get_compiler_options",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "73bafb5ee38964019c3da2000095608a7fb4b554"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ static const nir_shader_compiler_options sp_compiler_options = {
|
|||
|
||||
static const void *
|
||||
softpipe_get_compiler_options(struct pipe_screen *pscreen,
|
||||
enum pipe_shader_ir ir, unsigned shader)
|
||||
enum pipe_shader_ir ir,
|
||||
enum pipe_shader_type shader)
|
||||
{
|
||||
assert(ir == PIPE_SHADER_IR_NIR);
|
||||
return &sp_compiler_options;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue