mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix gutter-trim and compilation keeping
This commit is contained in:
parent
6c7d0270ad
commit
5b67ed7c33
@ -103,7 +103,7 @@ class Animation(object):
|
|||||||
# TODO: autoload dependent modules?
|
# TODO: autoload dependent modules?
|
||||||
self.src = util.assemble_code(util.BaseCode, mwc.MWC, self._iter.packer,
|
self.src = util.assemble_code(util.BaseCode, mwc.MWC, self._iter.packer,
|
||||||
self._iter, filtering.ColorClip, self._de)
|
self._iter, filtering.ColorClip, self._de)
|
||||||
self.cubin = pycuda.compiler.compile(self.src, keep=False,
|
self.cubin = pycuda.compiler.compile(self.src, keep=keep,
|
||||||
options=list(cmp_options))
|
options=list(cmp_options))
|
||||||
return self.src
|
return self.src
|
||||||
|
|
||||||
@ -356,10 +356,11 @@ class _AnimRenderer(object):
|
|||||||
obuf_dim = (a.features.acc_height, a.features.acc_stride, 4)
|
obuf_dim = (a.features.acc_height, a.features.acc_stride, 4)
|
||||||
out = cuda.from_device(self.d_out, obuf_dim, np.float32)
|
out = cuda.from_device(self.d_out, obuf_dim, np.float32)
|
||||||
# TODO: performance?
|
# TODO: performance?
|
||||||
out = np.delete(out, np.s_[:16], axis=0)
|
g = a.features.gutter
|
||||||
out = np.delete(out, np.s_[:16], axis=1)
|
out = np.delete(out, np.s_[:g], axis=0)
|
||||||
out = np.delete(out, np.s_[-16:], axis=0)
|
out = np.delete(out, np.s_[:g], axis=1)
|
||||||
out = np.delete(out, np.s_[-16:], axis=1)
|
out = np.delete(out, np.s_[-g:], axis=0)
|
||||||
|
out = np.delete(out, np.s_[a.features.width:], axis=1)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user