This is prep work for int64 support.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
}
if (explicit_stride && explicit_stride[buffer]) {
- if (this->is_double() && info->Buffers[buffer].Stride % 2) {
+ if (this->is_64bit() && info->Buffers[buffer].Stride % 2) {
linker_error(prog, "invalid qualifier xfb_stride=%d must be a "
"multiple of 8 as its applied to a type that is or "
"contains a double.",
return this->size;
else
return this->vector_elements * this->matrix_columns * this->size *
- (this->is_double() ? 2 : 1);
+ (this->is_64bit() ? 2 : 1);
}
unsigned get_location() const {
private:
- bool is_double() const
+ bool is_64bit() const
{
switch (this->type) {
case GL_DOUBLE: