[Mesa-dev] [PATCH 1/4] i965: Use Haswell's sample_d_c for textureGrad with shadow samplers.

Eric Anholt eric at anholt.net
Mon Jan 7 13:40:27 PST 2013


Kenneth Graunke <kenneth at whitecape.org> writes:
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
> index 63f09fe..0c2b696 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
> @@ -387,8 +387,11 @@ fs_generator::generate_tex(fs_inst *inst, struct brw_reg dst, struct brw_reg src
>  	 msg_type = GEN5_SAMPLER_MESSAGE_SAMPLE_RESINFO;
>  	 break;
>        case SHADER_OPCODE_TXD:
> -	 /* There is no sample_d_c message; comparisons are done manually */
> -	 msg_type = GEN5_SAMPLER_MESSAGE_SAMPLE_DERIVS;
> +         if (inst->shadow_compare) {

maybe an assert(intel->is_haswell) with a note that otherwise it had
been lowered, here and in the vs?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130107/f8a8dd25/attachment.pgp>


More information about the mesa-dev mailing list