|
Re: Pre-review: run state overhaul (issue206045)
No, it's 2% slower with it '#if 0'.
I'm not going to commit in this state, I just wanted to show everybody how I'd verified that I'm maintaining the index list correctly and the general scheme of
No, it's 2% slower with it '#if 0'.
I'm not going to commit in this state, I just wanted to show everybody how I'd verified that I'm maintaining the index list correctly and the general scheme of
|
By
Larry Gritz <l...@...>
·
#243
·
|
|
Re: Pre-review: run state overhaul (issue206045)
LGTM2
http://codereview.appspot.com/206045/diff/1/4
File src/liboslexec/exec.cpp (right):
http://codereview.appspot.com/206045/diff/1/4#newcode583
src/liboslexec/exec.cpp:583: #if 1
Should this be
LGTM2
http://codereview.appspot.com/206045/diff/1/4
File src/liboslexec/exec.cpp (right):
http://codereview.appspot.com/206045/diff/1/4#newcode583
src/liboslexec/exec.cpp:583: #if 1
Should this be
|
By
cku...@...
·
#245
·
|
|
Re: Pre-review: run state overhaul (issue206045)
LGTM
http://codereview.appspot.com/206045/show
LGTM
http://codereview.appspot.com/206045/show
|
By
aco...@...
·
#244
·
|
|
Re: Pre-review: run state overhaul (issue206045)
Incidentally, how much slower do we render by keeping both the runflags
and indices in place? Only 2%.
So this makes me think that quite soon into changing the individual
shadeops, we'll break even
Incidentally, how much slower do we render by keeping both the runflags
and indices in place? Only 2%.
So this makes me think that quite soon into changing the individual
shadeops, we'll break even
|
By
larry...@...
·
#242
·
|
|
Pre-review: run state overhaul (issue206045)
Reviewers: ,
Description:
We've done extensive analysis showing that for typical shading batches
we see in the wild, our method of having an array of true/false runflags
is very wasteful, and despite
Reviewers: ,
Description:
We've done extensive analysis showing that for typical shading batches
we see in the wild, our method of having an array of true/false runflags
is very wasteful, and despite
|
By
larry...@...
·
#241
·
|
|
Re: sincos opcode (issue205045)
Solaris provides sincos as part of math.h.
Given that OSL is now an open-source project, probably at some point it'll need to grow a configure based solution to find functions.
If configure was
Solaris provides sincos as part of math.h.
Given that OSL is now an open-source project, probably at some point it'll need to grow a configure based solution to find functions.
If configure was
|
By
Blair Zajac <bl...@...>
·
#226
·
|
|
Re: sincos opcode (issue205045)
Here is the patch to fmath.h:
Index: src/include/fmath.h
===================================================================
--- src/include/fmath.h (revision 1392)
+++ src/include/fmath.h (working
Here is the patch to fmath.h:
Index: src/include/fmath.h
===================================================================
--- src/include/fmath.h (revision 1392)
+++ src/include/fmath.h (working
|
By
cku...@...
·
#240
·
|
|
Re: sincos opcode (issue205045)
using portable sincos instead of calls to sin and cos
http://codereview.appspot.com/205045/show
using portable sincos instead of calls to sin and cos
http://codereview.appspot.com/205045/show
|
By
cku...@...
·
#239
·
|
|
Re: sincos opcode (issue205045)
I found an alternative that gets around having to use _GNU_SOURCE (which
might have other weird side effects).
http://codereview.appspot.com/205045/show
I found an alternative that gets around having to use _GNU_SOURCE (which
might have other weird side effects).
http://codereview.appspot.com/205045/show
|
By
cku...@...
·
#238
·
|
|
Re: sincos opcode (issue205045)
1. At the top of fmath.h, before #include <cmath>:
#ifndef __MATH_H__
#define _GNU_SOURCE
#endif
2. In fmath.h, define sincos
#if !defined(_GNU_SOURCE) || !defined(__GNUC__) ||
1. At the top of fmath.h, before #include <cmath>:
#ifndef __MATH_H__
#define _GNU_SOURCE
#endif
2. In fmath.h, define sincos
#if !defined(_GNU_SOURCE) || !defined(__GNUC__) ||
|
By
Larry Gritz <l...@...>
·
#225
·
|
|
Re: sincos opcode (issue205045)
Of course, please substitute whatever compiler or version checks *correctly* discern whether sincos is available.
--
Larry Gritz
l...@...
Of course, please substitute whatever compiler or version checks *correctly* discern whether sincos is available.
--
Larry Gritz
l...@...
|
By
Larry Gritz <l...@...>
·
#224
·
|
|
Re: sincos opcode (issue205045)
Its more complicated than that. The symbol doesn't show up by default.
You need to do:
#define _GNU_SOURCE
#include <math.h>
And of course, its hard to know where math.h (or cmath) is first
included
Its more complicated than that. The symbol doesn't show up by default.
You need to do:
#define _GNU_SOURCE
#include <math.h>
And of course, its hard to know where math.h (or cmath) is first
included
|
By
cku...@...
·
#237
·
|
|
Re: sincos opcode (issue205045)
I would put in fmath.h:
#ifndef __GNUC__
... define it in terms of sin and cos...
#endif
--
Larry Gritz
l...@...
I would put in fmath.h:
#ifndef __GNUC__
... define it in terms of sin and cos...
#endif
--
Larry Gritz
l...@...
|
By
Larry Gritz <l...@...>
·
#223
·
|
|
Re: sincos opcode (issue205045)
You may
This is a GNU extension, it isn't part of any standard to my knowledge.
Can you think of a cross platform way of detecting it?
http://codereview.appspot.com/205045/show
You may
This is a GNU extension, it isn't part of any standard to my knowledge.
Can you think of a cross platform way of detecting it?
http://codereview.appspot.com/205045/show
|
By
cku...@...
·
#236
·
|
|
Re: sincos opcode (issue205045)
Dude, use the C++ sincos() function to compute the sines and cosines!
You may as well make the underlying implementation faster in the same
way.
Other than that,
Dude, use the C++ sincos() function to compute the sines and cosines!
You may as well make the underlying implementation faster in the same
way.
Other than that,
|
By
larry...@...
·
#235
·
|
|
sincos opcode (issue205045)
Reviewers: dev-osl_imageworks.com, osl-dev_googlegroups.com,
Description:
Add a new opcode that computes sin and cos together
Please review this at
Reviewers: dev-osl_imageworks.com, osl-dev_googlegroups.com,
Description:
Add a new opcode that computes sin and cos together
Please review this at
|
By
cku...@...
·
#234
·
|
|
Re: check_nan bug fix and skip bind for struct params (issue204077)
We should double-check that the placeholder struct symbol table entries don't take any space in the heap. They aren't intended to.
If you don't have time to do it, please just file a ticket and I'll
We should double-check that the placeholder struct symbol table entries don't take any space in the heap. They aren't intended to.
If you don't have time to do it, please just file a ticket and I'll
|
By
Larry Gritz <l...@...>
·
#222
·
|
|
Re: check_nan bug fix and skip bind for struct params (issue204077)
I would have to check again, it seems to me the size was > 0. In any
case, it seemed dangerous to give a valid heap address to symbols that
should never be used.
The nan fix is just that we were
I would have to check again, it seems to me the size was > 0. In any
case, it seemed dangerous to give a valid heap address to symbols that
should never be used.
The nan fix is just that we were
|
By
cku...@...
·
#233
·
|
|
Re: Review: error for type coercion of output params (issue204076)
LGTM
http://codereview.appspot.com/204076/show
LGTM
http://codereview.appspot.com/204076/show
|
By
cku...@...
·
#232
·
|
|
Re: check_nan bug fix and skip bind for struct params (issue204077)
How much "space" were we allocating for the struct placeholders? Should be 0, no? Or was the problem just that check_nan was reading bogus heap areas to check nans on these placeholders?
--
Larry
How much "space" were we allocating for the struct placeholders? Should be 0, no? Or was the problem just that check_nan was reading bogus heap areas to check nans on these placeholders?
--
Larry
|
By
Larry Gritz <l...@...>
·
#221
·
|