On Thursday, April 23, 2015 09:00:28 PM Topi Pohjolainen wrote:
> Signed-off-by: Topi Pohjolainen <topi.pohjolai...@intel.com>
> ---
>  src/mesa/drivers/dri/i965/brw_blorp.h    |  4 +++-
>  src/mesa/drivers/dri/i965/gen6_blorp.cpp | 15 +++++++++------
>  src/mesa/drivers/dri/i965/gen7_blorp.cpp |  3 ++-
>  3 files changed, 14 insertions(+), 8 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h 
> b/src/mesa/drivers/dri/i965/brw_blorp.h
> index 59aecab..63dfe5b 100644
> --- a/src/mesa/drivers/dri/i965/brw_blorp.h
> +++ b/src/mesa/drivers/dri/i965/brw_blorp.h
> @@ -415,7 +415,9 @@ gen6_blorp_emit_drawing_rectangle(struct brw_context *brw,
>  
>  uint32_t
>  gen6_blorp_emit_sampler_state(struct brw_context *brw,
> -                              const brw_blorp_params *params);
> +                              unsigned tex_filter, unsigned max_lod,
> +                              bool use_unorm_coords);

Let's not call this "use_unorm_coords".  UNORM is a data format -
unsigned normalized fixed point numbers.

This means non-normalized texture coordinates, i.e. ones that range from
[0, width]x[0, height] instead of [0.0, 1.0]x[0.0, 1.0].

"is_rectangle_sampler", "non_normalized_coords", or "use_rect_coords"
all seem like reasonable names.  I'm open to other ideas too.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to