Fix to non-rd variance partition selection.
Fix to non-rd variance partition selection.

Only test for using golden as reference for variance partition
selection if it is used as a reference for that frame.

For temporal layers, golden may not be a reference on a given frame,
even though it was for some previous frame. If it is not a reference
for current frame, don't check/use it for partition selection.

Change-Id: I6b0f2bd36aebbb5903077c9a0a66d80f1de9a7b1

Topopiccione/libvpx,GrokImageCompression/aom,mbebenita/aom,openpeer/libvpx_new,thdav/aom,ittiamvpx/libvpx-1,mwgoldsmith/libvpx,zofuthan/libvpx,webmproject/libvpx,openpeer/libvpx_new,running770/libvpx,openpeer/libvpx_new,jmvalin/aom,thdav/aom,smarter/aom,felipebetancur/libvpx,webmproject/libvpx,mbebenita/aom,luctrudeau/aom,GrokImageCompression/aom,shacklettbp/aom,mbebenita/aom,mwgoldsmith/libvpx,webmproject/libvpx,openpeer/libvpx_new,Topopiccione/libvpx,thdav/aom,GrokImageCompression/aom,ittiamvpx/libvpx-1,shacklettbp/aom,ittiamvpx/libvpx-1,ittiamvpx/libvpx-1,smarter/aom,mwgoldsmith/libvpx,mwgoldsmith/vpx,ShiftMediaProject/libvpx,felipebetancur/libvpx,ShiftMediaProject/libvpx,ShiftMediaProject/libvpx,VTCSecureLLC/libvpx,VTCSecureLLC/libvpx,liqianggao/libvpx,webmproject/libvpx,jmvalin/aom,jmvalin/aom,luctrudeau/aom,openpeer/libvpx_new,mwgoldsmith/vpx,VTCSecureLLC/libvpx,mbebenita/aom,ShiftMediaProject/libvpx,ittiamvpx/libvpx-1,jmvalin/aom,Topopiccione/libvpx,webmproject/libvpx,shacklettbp/aom,mbebenita/aom,mwgoldsmith/vpx,liqianggao/libvpx,luctrudeau/aom,mwgoldsmith/vpx,GrokImageCompression/aom,thdav/aom,zofuthan/libvpx,smarter/aom,luctrudeau/aom,luctrudeau/aom,mwgoldsmith/libvpx,openpeer/libvpx_new,jmvalin/aom,running770/libvpx,felipebetancur/libvpx,shacklettbp/aom,VTCSecureLLC/libvpx,felipebetancur/libvpx,running770/libvpx,thdav/aom,VTCSecureLLC/libvpx,ittiamvpx/libvpx-1,mwgoldsmith/vpx,running770/libvpx,smarter/aom,felipebetancur/libvpx,thdav/aom,webmproject/libvpx,GrokImageCompression/aom,mbebenita/aom,Topopiccione/libvpx,running770/libvpx,GrokImageCompression/aom,liqianggao/libvpx,zofuthan/libvpx,running770/libvpx,mwgoldsmith/vpx,ShiftMediaProject/libvpx,Topopiccione/libvpx,mwgoldsmith/libvpx,zofuthan/libvpx,liqianggao/libvpx,VTCSecureLLC/libvpx,shacklettbp/aom,jmvalin/aom,mwgoldsmith/libvpx,smarter/aom,liqianggao/libvpx,zofuthan/libvpx,felipebetancur/libvpx,shacklettbp/aom,mbebenita/aom,luctrudeau/aom,liqianggao/libvpx,Topopiccione/libvpx,mbebenita/aom,smarter/aom,mbebenita/aom,zofuthan/libvpx