Adjusted dx level check to use mat_dxlevel, because the other check doesn't seem valid in all cases.