aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2019-08-29 16:44:09 -0700
committerVinson Lee <[email protected]>2019-09-02 14:52:23 -0700
commit538820ff5ff3f1ca09f81d4144590fad99081397 (patch)
tree3696672f0c180f7fb428f43675156415dc07c984 /src/gallium
parent1900b82dbfd0dff993e8b9d84fa1d8b03c5f6fa5 (diff)
swr: Fix make_unique build error.
swr_shader.cpp: In function ‘void (* swr_compile_gs(swr_context*, swr_jit_gs_key&))(HANDLE, HANDLE, SWR_GS_CONTEXT*)’: swr_shader.cpp:732:44: error: ‘make_unique’ was not declared in this scope ctx->gs->map.insert(std::make_pair(key, make_unique<VariantGS>(builder.gallivm, func))); ^~~~~~~~~~~ Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Jan Zielinski <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/swr_shader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/swr_shader.cpp b/src/gallium/drivers/swr/swr_shader.cpp
index 9b27652d8bc..5ef45caecc3 100644
--- a/src/gallium/drivers/swr/swr_shader.cpp
+++ b/src/gallium/drivers/swr/swr_shader.cpp
@@ -728,7 +728,7 @@ swr_compile_gs(struct swr_context *ctx, swr_jit_gs_key &key)
"GS");
PFN_GS_FUNC func = builder.CompileGS(ctx, key);
- ctx->gs->map.insert(std::make_pair(key, make_unique<VariantGS>(builder.gallivm, func)));
+ ctx->gs->map.insert(std::make_pair(key, std::make_unique<VariantGS>(builder.gallivm, func)));
return func;
}
@@ -983,7 +983,7 @@ swr_compile_vs(struct swr_context *ctx, swr_jit_vs_key &key)
"VS");
PFN_VERTEX_FUNC func = builder.CompileVS(ctx, key);
- ctx->vs->map.insert(std::make_pair(key, make_unique<VariantVS>(builder.gallivm, func)));
+ ctx->vs->map.insert(std::make_pair(key, std::make_unique<VariantVS>(builder.gallivm, func)));
return func;
}
@@ -1450,6 +1450,6 @@ swr_compile_fs(struct swr_context *ctx, swr_jit_fs_key &key)
"FS");
PFN_PIXEL_KERNEL func = builder.CompileFS(ctx, key);
- ctx->fs->map.insert(std::make_pair(key, make_unique<VariantFS>(builder.gallivm, func)));
+ ctx->fs->map.insert(std::make_pair(key, std::make_unique<VariantFS>(builder.gallivm, func)));
return func;
}