Encoding: Add one hook callback function to detect encoding capabilitiy on Haswell
Encoding: Add one hook callback function to detect encoding capabilitiy on Haswell

Some Haswell machine doesn't support the encoding. So it should be disabled.
Otherwise the driver can't report the supported capability correctly.

V1->V2: Minor update based on comment from Gwenole Beauchesne. For example:
use the bool tye and remove the hardcoded value

Signed-off-by: Zhao Yakui <21bae65ecea50a19bd9d0fef489914760189fd5b@intel.com>
(cherry picked from commit 23ae0f76ee5b3c097e6ae34182219cf44b09b82e)

chenxianqin/vaapi-intel-driver,chenxianqin/vaapi-intel-driver,gbeauchesne/libva-intel-driver,gbeauchesne/libva-intel-driver,chenxianqin/vaapi-intel-driver,uartie/vaapi-intel-driver,gbeauchesne/libva-intel-driver,01org/iotg-lin-gfx-va-driver,gbeauchesne/libva-intel-driver,01org/iotg-lin-gfx-va-driver,01org/iotg-lin-gfx-va-driver,gbeauchesne/libva-intel-driver,uartie/vaapi-intel-driver,uartie/vaapi-intel-driver,chenxianqin/vaapi-intel-driver,uartie/vaapi-intel-driver,uartie/vaapi-intel-driver,01org/iotg-lin-gfx-va-driver,01org/iotg-lin-gfx-va-driver,chenxianqin/vaapi-intel-driver