anv/device: Images are only enabled in scalar stages

Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Jason Ekstrand
2016-04-15 16:39:17 -07:00
parent c1a2fe7fd1
commit 93db828e42

View File

@@ -408,8 +408,8 @@ void anv_GetPhysicalDeviceFeatures(
/* We can't do image stores in vec4 shaders */
pFeatures->vertexPipelineStoresAndAtomics =
!pdevice->compiler->scalar_stage[MESA_SHADER_VERTEX] &&
!pdevice->compiler->scalar_stage[MESA_SHADER_GEOMETRY];
pdevice->compiler->scalar_stage[MESA_SHADER_VERTEX] &&
pdevice->compiler->scalar_stage[MESA_SHADER_GEOMETRY];
}
void