unsigned explicit_image_format:1;
unsigned coherent:1;
unsigned _volatile:1;
- unsigned _restrict:1;
+ unsigned restrict_flag:1;
unsigned read_only:1; /**< "readonly" qualifier. */
unsigned write_only:1; /**< "writeonly" qualifier. */
/** \} */
return false;
}
- if (actual->data.image._restrict && !formal->data.image._restrict) {
+ if (actual->data.image.restrict_flag && !formal->data.image.restrict_flag) {
_mesa_glsl_error(loc, state,
"function call parameter `%s' drops "
"`restrict' qualifier", formal->name);
var->data.image.write_only |= qual->flags.q.write_only;
var->data.image.coherent |= qual->flags.q.coherent;
var->data.image._volatile |= qual->flags.q._volatile;
- var->data.image._restrict |= qual->flags.q._restrict;
+ var->data.image.restrict_flag |= qual->flags.q.restrict_flag;
var->data.read_only = true;
if (qual->flags.q.explicit_image_format) {
image->data.image.write_only = flags & IMAGE_FUNCTION_WRITE_ONLY;
image->data.image.coherent = true;
image->data.image._volatile = true;
- image->data.image._restrict = true;
+ image->data.image.restrict_flag = true;
return sig;
}
{
STATIC_ASSERT(sizeof($$.flags.q) <= sizeof($$.flags.i));
memset(& $$, 0, sizeof($$));
- $$.flags.q._restrict = 1;
+ $$.flags.q.restrict_flag = 1;
}
| READONLY
{
this->data.image.write_only = false;
this->data.image.coherent = false;
this->data.image._volatile = false;
- this->data.image._restrict = false;
+ this->data.image.restrict_flag = false;
if (type != NULL) {
if (type->base_type == GLSL_TYPE_SAMPLER)
a->data.image.write_only != b->data.image.write_only ||
a->data.image.coherent != b->data.image.coherent ||
a->data.image._volatile != b->data.image._volatile ||
- a->data.image._restrict != b->data.image._restrict) {
+ a->data.image.restrict_flag != b->data.image.restrict_flag) {
/* parameter a's qualifiers don't match */
return a->name;
bool write_only; /**< "writeonly" qualifier. */
bool coherent;
bool _volatile;
- bool _restrict;
+ bool restrict_flag;
/** Image internal format if specified explicitly, otherwise GL_NONE. */
GLenum format;