summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorYuanhan Liu <[email protected]>2011-10-14 13:47:10 +0800
committerYuanhan Liu <[email protected]>2011-10-19 09:24:54 +0800
commit76669381c0de6a49a1edd0b88fa1ae6b86f10b30 (patch)
treea4bdf85ccafd31f393c5d8149247ed43a59fb269 /docs
parent483ea0a76fd2cde8fd5d4c303f1576ae15c21de5 (diff)
i965: setup address rounding enable bits
The patch(based on the reading of the emulator) came from while I was trying to fix the oglc pbo texImage.1PBODefaults fail. This case generates a texture with the width and height equal to window's width and height respectively, then try to texture it on the whole window. So, it's exactly one texel for one pixel. And, the min filter and mag filter are GL_LINEAR. It runs with swrast OK, as expected. But it failed with i965 driver. Well, you can't tell the difference from the screen, as the error is quite tiny. From my digging, it seems that there are some tiny error happened while getting tex address. This will break the one texel for one pixel rule in this case. Thus the linear result is taken, with tiny error. This patch would fix all oglc pbo subcase fail with the same issue on both ILK, SNB and IVB. v2: comments from Ian, make the address_round filed assignment consistent. (the sampler is alread memset to 0 by the xxx_update_samper_state caller, so need to assign 0 first) Signed-off-by: Yuanhan Liu <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions