v3d: fill logicop_func in the fragment shader key when precompiling shaders
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 19 Jul 2019 07:54:54 +0000 (09:54 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 22 Jul 2019 06:05:59 +0000 (08:05 +0200)
commitdacaf7ec06f2b9f4c57e0aff842b8337eb78e8c5
tree042abba7feea319086f53706f46842db09f1bd2a
parent9bf0bdf7762afef04b923c043242356ccd3de092
v3d: fill logicop_func in the fragment shader key when precompiling shaders

Since logicop_func 0 is PIPE_LOGIOP_CLEAR, we were trigger lowerinng
of logic ops on precompiled shaders, which we don't want to do. Also, this
had the side effect of making shader-db crash, as during this lowering we
would try to read the color format swizzle information from the fragment shader
key that we don't populate in precompiled shaders because right now we only
need it when logic operations are enabled.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/v3d/v3d_program.c