mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[primitives] only run benchmark if opencl enabled
there is no need to compare implementation performance if only one optimized version is available.
This commit is contained in:
@@ -91,8 +91,6 @@ static BOOL CALLBACK primitives_init_generic_cb(PINIT_ONCE once, PVOID param, PV
|
||||
|
||||
static BOOL primitives_init_optimized(primitives_t* prims)
|
||||
{
|
||||
primitives_init_generic(prims);
|
||||
|
||||
#if defined(HAVE_CPU_OPTIMIZED_PRIMITIVES)
|
||||
primitives_init_add_opt(prims);
|
||||
primitives_init_andor_opt(prims);
|
||||
@@ -220,7 +218,7 @@ static BOOL primitives_autodetect_best(primitives_t* prims)
|
||||
};
|
||||
const struct prim_benchmark* best = NULL;
|
||||
|
||||
#if !defined(HAVE_CPU_OPTIMIZED_PRIMITIVES) && !defined(WITH_OPENCL)
|
||||
#if !defined(HAVE_CPU_OPTIMIZED_PRIMITIVES) || !defined(WITH_OPENCL)
|
||||
{
|
||||
struct prim_benchmark* cur = &testcases[0];
|
||||
cur->prims = primitives_get_by_type(cur->flags);
|
||||
|
||||
Reference in New Issue
Block a user