anv/device: Images are only enabled in scalar stages
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Apr 2016 23:39:17 +0000 (16:39 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Apr 2016 23:40:56 +0000 (16:40 -0700)
Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/intel/vulkan/anv_device.c

index 57c40f5..e477fe1 100644 (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