[gegl] buffer: re-enable 1px shortcut
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: re-enable 1px shortcut
- Date: Fri, 20 Jun 2014 16:47:47 +0000 (UTC)
commit d97833be8327b92c3e11a1997a57e5e1df296c10
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Jun 20 10:24:51 2014 +0200
buffer: re-enable 1px shortcut
gegl/buffer/gegl-sampler-nearest.c | 8 ++++----
perf/Makefile-retrospect | 4 ++--
perf/perf-build.sh | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 8496b52..44eb5c7 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -209,11 +209,11 @@ gegl_sampler_nearest_prepare (GeglSampler* restrict sampler)
return;
GEGL_SAMPLER_NEAREST (sampler)->buffer_bpp = babl_format_get_bytes_per_pixel (sampler->buffer->format);
- //if (sampler->format == sampler->buffer->soft_format)
- // {
+ if (sampler->format == sampler->buffer->soft_format)
+ {
sampler->get = gegl_sampler_nearest_get_same_format;
- // }
- //else
+ }
+ else
{
sampler->fish = babl_fish (sampler->buffer->soft_format, sampler->format);
}
diff --git a/perf/Makefile-retrospect b/perf/Makefile-retrospect
index 03da28d..a1587d7 100644
--- a/perf/Makefile-retrospect
+++ b/perf/Makefile-retrospect
@@ -21,8 +21,8 @@ retry:
prepare:
# uncomment these to make sure cpu is in high performance mode
- #sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor || true'
- #sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor || true'
+ sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor || true'
+ sudo sh -c 'echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor || true'
reset:
rm -rf jobs jobs
diff --git a/perf/perf-build.sh b/perf/perf-build.sh
index e5b310a..005b035 100755
--- a/perf/perf-build.sh
+++ b/perf/perf-build.sh
@@ -25,7 +25,7 @@ if [ ! -d prefixes/$REV ]; then
make $MAKE_FLAGS ;
make -k install
- touch `pwd`/../built
+ touch `pwd`/../prefix/built
) > prefix/build_log 2>&1
fi;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]