panfrost: Pass compiler-appropriate options
FMAs need to fuse for Bifrost. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>
This commit is contained in:

committed by
Tomeu Vizoso

parent
e30091bc51
commit
23620d1830
@@ -52,6 +52,7 @@
|
||||
|
||||
#include "pan_context.h"
|
||||
#include "midgard/midgard_compile.h"
|
||||
#include "bifrost/bifrost_compile.h"
|
||||
#include "panfrost-quirks.h"
|
||||
|
||||
static const struct debug_named_value debug_options[] = {
|
||||
@@ -701,7 +702,10 @@ panfrost_screen_get_compiler_options(struct pipe_screen *pscreen,
|
||||
enum pipe_shader_ir ir,
|
||||
enum pipe_shader_type shader)
|
||||
{
|
||||
return &midgard_nir_options;
|
||||
if (pan_device(pscreen)->quirks & IS_BIFROST)
|
||||
return &bifrost_nir_options;
|
||||
else
|
||||
return &midgard_nir_options;
|
||||
}
|
||||
|
||||
struct pipe_screen *
|
||||
|
Reference in New Issue
Block a user