brw,elk: Fix opening flags on dumping shader binaries
Truncation is needed for overwriting correctly in cases when old file is bigger than the one we want to dump (e.g. when the old one was edited inplace). Also, creation permissions are way too broad. Fixes: 4f41c44d ("intel/compiler: Add variable to dump binaries of all compiled shaders") Signed-off-by:Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <mesa/mesa!30581>
Loading
Please register or sign in to comment