From: Ilia Mirkin Date: Fri, 28 Aug 2015 03:34:47 +0000 (-0400) Subject: i965: add handling for imageSamples X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55ebaa6d003b69c0a159a00d82a1e96f685062d6;p=mesa.git i965: add handling for imageSamples Signed-off-by: Ilia Mirkin Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 0902e1c396e..1cc7b021928 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -1436,6 +1436,11 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr break; } + case nir_intrinsic_image_samples: + /* The driver does not support multi-sampled images. */ + bld.MOV(retype(dest, BRW_REGISTER_TYPE_D), fs_reg(1)); + break; + case nir_intrinsic_load_front_face: bld.MOV(retype(dest, BRW_REGISTER_TYPE_D), *emit_frontfacing_interpolation());