Since pixel center lies at 0.5, add half_pixel to vtex
before adding offsets to it.
Signed-off-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
ureg_src(t_array[22]));
ureg_DIV(shader, ureg_writemask(t_array[22], TGSI_WRITEMASK_XY),
ureg_src(t_array[22]), ureg_imm2f(shader, video_width, video_height));
+ ureg_ADD(shader, ureg_writemask(t_array[22], TGSI_WRITEMASK_XY),
+ ureg_src(t_array[22]), half_pixel);
/*
* t_array[0..*] = vtex + offset[0..*]