intel/compiler: Initialize SIMDSelectionTest member error.
Fix defect reported by Coverity Scan.
Uninitialized pointer field (UNINIT_CTOR)
uninit_member: Non-static class member error is not initialized
in this constructor nor in any functions that it calls.
Fixes: 7558340ebb
("intel/compiler: Add helpers to select SIMD for compute shaders")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13608>
This commit is contained in:
parent
d863e62b32
commit
f13d486ee7
|
@ -41,7 +41,7 @@ const bool not_spilled = false;
|
|||
|
||||
class SIMDSelectionTest : public ::testing::Test {
|
||||
protected:
|
||||
SIMDSelectionTest() {
|
||||
SIMDSelectionTest() : error{NULL, NULL, NULL} {
|
||||
mem_ctx = ralloc_context(NULL);
|
||||
devinfo = rzalloc(mem_ctx, intel_device_info);
|
||||
prog_data = rzalloc(mem_ctx, struct brw_cs_prog_data);
|
||||
|
|
Loading…
Reference in New Issue