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:
Alyssa Rosenzweig
2020-04-08 19:05:57 -04:00
committed by Tomeu Vizoso
parent e30091bc51
commit 23620d1830

View File

@@ -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 *